Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

customvalidator

“pydantic\validators.py” : no validator found for

April 5, 2024 by Tarik

Personally, I’d mistyped the type annotation class Foo(BaseModel): bar = Optional[NonNegativeInt] Rather than; class Foo(BaseModel): bar: Optional[NonNegativeInt] Silly one ik, but double check that 🙂

Categories pandas Tags customvalidator, pandas, pydantic, python-dataclasses, validation Leave a comment

Display custom validator error with mat-error

July 22, 2023 by Tarik

Alex is correct. You have to use an ErrorStateMatcher. I had to do a lot of research to figure this out, and there wasn’t a single source that gave me the whole answer.  I had to cobble together the information I learned from multiple sources to make my own solution to the problem.  Hopefully the … Read more

Categories angular Tags angular, angular-material2, customvalidator Leave a comment

ASP.NET Custom Validator Client side & Server Side validation not firing

February 14, 2023 by Tarik

Use this: <asp:CustomValidator runat=”server” id=”vld” ValidateEmptyText=”true”/> To validate an empty field. You don’t need to add 2 validators !

Categories c# Tags .net, asp.net, c++, customvalidator, validation Leave a comment

Where should Rails 3 custom validators be stored?

January 14, 2023 by Tarik

If you place your custom validators in app/validators they will be automatically loaded without needing to alter your config/application.rb file.

Categories ruby-on-rails Tags customvalidator, ruby-on-rails, validation Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa