We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If we pass JSON to a model, the default is that it will ignore extra fields not defined on it.
This isn't useful if we want to validate JSON, so it would be better to do:
class Config: extra = Extra.forbid
This does mean that we'll be less tolerant and produce more errors if we don't add fields properly, but that's sort of the point of this library.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If we pass JSON to a model, the default is that it will ignore extra fields not defined on it.
This isn't useful if we want to validate JSON, so it would be better to do:
This does mean that we'll be less tolerant and produce more errors if we don't add fields properly, but that's sort of the point of this library.
The text was updated successfully, but these errors were encountered: