-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests for minimum properties and items (#432)
* Fix tests for minimum properties and items In JSON Schema validation for minimum properties and items the data should be non-empty. * Add tests for invalid empty properties and items Add validation messages for empty properties and items that should be non-empty. * Fix warning from pytest trylast Use decorator @pytest.hookimpl(trylast=True) instead @pytest.mark.trylast * Fix warnings about literal comparations with 'is' Change literal comparations from 'is' to '=='. * Apply pre-commit * Use jsonschema >= 3.2.0 for all python versions * Define minimum version for JSON Schema From version 4.21.0 JSON Schema to validation for minimum properties and items the data should be non-empty.
- Loading branch information
1 parent
377c4ab
commit 5214606
Showing
7 changed files
with
44 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters