Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

way to force validators to be run even if value is missing #100

Closed
samuelcolvin opened this issue Nov 7, 2017 · 0 comments · Fixed by #102
Closed

way to force validators to be run even if value is missing #100

samuelcolvin opened this issue Nov 7, 2017 · 0 comments · Fixed by #102

Comments

@samuelcolvin
Copy link
Member

eg. to generate a default or validate the default value.

samuelcolvin added a commit that referenced this issue Nov 8, 2017
samuelcolvin added a commit that referenced this issue Nov 8, 2017
samuelcolvin added a commit that referenced this issue Nov 8, 2017
* validators called always, fix #100

* testing validate always validators

* adding docs
alexdrydew pushed a commit to alexdrydew/pydantic that referenced this issue Dec 23, 2023
* feat: allow fields to be optional i.e. not required

* changes after @samuelcolvin review

* use SchemaDict on config, tweak error message

Co-authored-by: Samuel Colvin <s@muelcolvin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant