Strict Schema Validation should be enabled by default
See original GitHub issueTo me, it goes against the zen of Python that validation fails silently when the strict
parameter is not set to True
. Why is it false by default? Shouldn’t it be True
by default?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:7
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Strict Schema Validation - Oracle Help Center
From version 21A, the feature will be enabled by default but can still be disabled if more time is needed to develop current...
Read more >Strict mode - Ajv JSON schema validator
Ignored defaults With useDefaults option Ajv modifies validated data by assigning defaults from the schema, but there are different limitations when the ......
Read more >Generic keywords — Understanding JSON Schema 2020-12 ...
The default keyword specifies a default value. This value is not used to fill in missing values during the validation process. Non-validation tools...
Read more >Add strict mode for JSON Schema validation
For the validation of a JSON instance with a JSON Schema, you need to add in the JSON Schema the "additionalProperties": false construct...
Read more >Schema Validation — MongoDB Manual
By default, when an insert or update operation would result in an invalid document, MongoDB rejects the operation and does not write the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In our project we just use our own base class for all schemas:
After giving this some thought, I am leaning towards making schemas strict by default.
If anyone has objections, speak now or forever hold your peace. =)