summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Python 3.6.deprecationsJulian Berman2021-08-203-17/+4
| | | | | | | | | It's in security fix only mode (till EOY) and doesn't support module-level __getattr__ yet, which presents enough of a minor nuisance to drop it. Users should stick to older jsonschema versions (which should be properly marked.)
* Deprecate jsonschema.__version__.Julian Berman2021-08-206-15/+55
| | | | | importlib.metadata is in the standard library now, so there's not much purpose in pre-calculating this attribute.
* Let format_index handle the container too.Julian Berman2021-08-202-10/+16
| | | | May as well, this is only used in 2 places.
* Minor style.Julian Berman2021-08-192-7/+7
|
* yield from everywhere, saving precious linesJulian Berman2021-08-182-64/+35
|
* Merge commit '2591383efc85ba04e52e09aa73376f515baa4a49'Julian Berman2021-08-183-1/+76
|\ | | | | | | | | * commit '2591383efc85ba04e52e09aa73376f515baa4a49': Squashed 'json/' changes from 878b0ad5f..eb619047f
| * Squashed 'json/' changes from 878b0ad5f..eb619047fJulian Berman2021-08-183-1/+76
| | | | | | | | | | | | | | | | eb619047f Merge pull request #504 from json-schema-org/minContains-0-but-maxContains c41a68e83 Add tests for minContains = 0 but with maxContains git-subtree-dir: json git-subtree-split: eb619047f145de038d60e1ded4b7957d4fe6bd2f
* | More strict style, now via bugbear.Julian Berman2021-08-189-26/+29
| | | | | | | | | | | | The unevaluated* validators will definitely need rewriting, what they do right now is completely incorrect (which bugbear points out at least, though poking at them trivially also does).
* | Reimplement contains.Julian Berman2021-08-182-51/+25
| | | | | | | | | | | | | | Fixes a bug where maxContains was being ignored if minContains was set to 0. Also now short circuits as soon as more than maxContains is reached rather than continuing to validate.
* | Remove types_msg which implements really old draft-3 behavior.Julian Berman2021-08-183-22/+10
| | | | | | | | | | | | Since then, types aren't objects, they're just strings. This just wastes time catching exceptions for newer drafts.
* | Tidy up validation error messages, particularly using f-strings.Julian Berman2021-08-1810-152/+320
| |
* | Run the unicode and float-overflow optional tests on all drafts.Julian Berman2021-08-181-0/+8
| |
* | Merge commit '0fe6d845792049d67e25b452ca056689783358eb'Julian Berman2021-08-186-6/+6
|\ \ | |/ | | | | | | * commit '0fe6d845792049d67e25b452ca056689783358eb': Squashed 'json/' changes from bb2a20d3e..878b0ad5f
| * Squashed 'json/' changes from bb2a20d3e..878b0ad5fJulian Berman2021-08-186-6/+6
| | | | | | | | | | | | | | 878b0ad5f properly escape this newline character - thanks Srikrishnan Suresh! git-subtree-dir: json git-subtree-split: 878b0ad5f016915572dab7a4543a045d38b7098e
* | Remove more unneeded u prefixes.Julian Berman2021-08-187-101/+101
| |
* | And a linter to forbid slash-line-continuation.Julian Berman2021-08-182-1/+4
| |
* | Add a linter to ensure single quotes aren't added.Julian Berman2021-08-188-60/+61
| |
* | Add the drafts to the changelog.Julian Berman2021-08-181-0/+2
| |
* | Unnecessary `len`s.Julian Berman2021-08-181-2/+2
| |
* | Update the draft info in the README.Julian Berman2021-08-181-0/+2
| |
* | May as well add support for Draft 2019 as well.Julian Berman2021-08-1816-36/+488
| | | | | | | | recursiveRef is broken in the same way dynamicRef is.
* | Remove the $defs validator.Julian Berman2021-08-182-29/+3
| | | | | | | | | | | | | | This isn't correct, $defs doesn't have behavior (it isn't an assertion). The reason these tests fail is because the dynamicRef implementation isn't fully correct (will need some restructuring).
* | And add it to the docs.Julian Berman2021-08-181-0/+2
| |
* | Fix Draft2020-12Validator's name to be Draft202012Validator.Julian Berman2021-08-182-1/+11
| |
* | Don't check schemas in test suite runs.Julian Berman2021-08-181-7/+2
| | | | | | | | | | | | Saves a bit of work (given test suite schemas are 'guaranteed' to be valid), but more importantly is easier to debug with a debugger since there's only one pass of validation for an example.
* | Bump doc requirements.Julian Berman2021-08-172-21/+21
| |
* | SpellingJulian Berman2021-08-171-1/+1
| |
* | Freenode is dead.Julian Berman2021-08-171-3/+3
| |
* | Fix the names of internal test cases for newer drafts.Julian Berman2021-08-171-1/+1
| |
* | Remove some u prefixes leftover from Py2.Julian Berman2021-08-171-160/+160
| |
* | Merge pull request #830 from linuxholic/patch-1Julian Berman2021-08-091-1/+1
|\ \ | | | | | | Update setup.cfg
| * | Update setup.cfg杨鹏2021-08-091-1/+1
|/ / | | | | excludes yanked pyrsistent versions
* | Fix the UUID format.Julian Berman2021-08-061-3/+2
| | | | | | | | | | The specification requires the verbose (with-dashes) format of specifying UUIDs.
* | Merge commit 'f29c81f3d812a0d82428c90f3623dc5fb5331b2c'Julian Berman2021-08-063-0/+45
|\ \ | |/ | | | | | | * commit 'f29c81f3d812a0d82428c90f3623dc5fb5331b2c': Squashed 'json/' changes from f9acc454..bb2a20d3
| * Squashed 'json/' changes from f9acc454..bb2a20d3Julian Berman2021-08-063-0/+45
| | | | | | | | | | | | | | | | bb2a20d3 Merge pull request #503 from json-schema-org/uuid-dashes 8e746b3a Test that UUIDs have dashes in the right spots. git-subtree-dir: json git-subtree-split: bb2a20d3ea6dc343754884afab674e990faae35a
* | Merge branch 'draft2020-12'Julian Berman2021-08-0416-114/+115
|\ \ | | | | | | | | | | | | | | | | | | * draft2020-12: Squashed 'json/' changes from fd0aa9f8..f9acc454 Fix missing trailing commas. Tidy the docstring slightly.
| * \ Merge commit '528eb6f3d00e32a0c71a0bb10c1e443d102d5120' into draft2020-12Julian Berman2021-08-041-0/+15
| |\ \ | | |/ | | | | | | | | | * commit '528eb6f3d00e32a0c71a0bb10c1e443d102d5120': Squashed 'json/' changes from fd0aa9f8..f9acc454
| | * Squashed 'json/' changes from fd0aa9f8..f9acc454Julian Berman2021-08-041-0/+15
| | | | | | | | | | | | | | | | | | | | | f9acc454 Backport #451 to draft 7. git-subtree-dir: json git-subtree-split: f9acc4546f9e4b63c8e35e67db69f0bc583316b8
| * | Fix missing trailing commas.draft2020-12Julian Berman2021-08-0415-110/+92
| | | | | | | | | | | | Add flake8-commas to ensure this stays the case.
| * | Tidy the docstring slightly.Julian Berman2021-08-042-4/+8
| | |
| * | Merge remote-tracking branch 'anexia-it/draft2020-12'Julian Berman2021-08-0420-59/+1095
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * anexia-it/draft2020-12: Julian/jsonschema#782: Remove ecmascript validation, extend dynamicRef skip description Julian/jsonschema#782: Add compatibility to draft7 and older Julian/jsonschema#782: Code clenaup, fixes validation messages Julian/jsonschema#782: Extend format tests Julian/jsonschema#782: Resolve meta schema vocabularies from local cache Julian/jsonschema#782: Refactor items behavior with prefixItems Julian/jsonschema#782: Update validation message for unevaluatedProperties and unevaluatedItems Julian/jsonschema#782: Fixes failing styles Julian/jsonschema#782: Adapt validator test for draft2020-12, fixes code styles Julian/jsonschema#782: Fixes relative json pointer format validation for leading zero on digit Julian/jsonschema#782: Load dependencies from legacy validators Julian/jsonschema#782: Implements dynamicRef validations Julian/jsonschema#782: Add validation for uuid format Julian/jsonschema#782: Implements defs validations Julian/jsonschema#782: Extend resolver for anchor Julian/jsonschema#782: Fixes ref resolver for folders Julian/jsonschema#782: Fixes ref validation priority Julian/jsonschema#782: Extend implementation of ref Julian/jsonschema#782: Implements unevaluatedProperties validations Julian/jsonschema#782: Implements unevaluatedItems validations Julian/jsonschema#782: Extend contains with minContains and maxContaints, add contains legacy validator Julian/jsonschema#782: Adapt items to work with prefixItems Julian/jsonschema#782: Add checks for prefixItems, basic check for unevaluatedItems Julian/jsonschema#782: Extend format check for draft2020-12, add duration format check Julian/jsonschema#782: Add dependentRequired and dependentSchemas validation Julian/jsonschema#782: Split format and regular test cases on draft2020-12 Julian/jsonschema#782: Enable draft2020-12 test suite
* | \ \ Merge remote-tracking branch 'anexia-it/draft2020-12'Julian Berman2021-08-0420-59/+1095
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * anexia-it/draft2020-12: Julian/jsonschema#782: Remove ecmascript validation, extend dynamicRef skip description Julian/jsonschema#782: Add compatibility to draft7 and older Julian/jsonschema#782: Code clenaup, fixes validation messages Julian/jsonschema#782: Extend format tests Julian/jsonschema#782: Resolve meta schema vocabularies from local cache Julian/jsonschema#782: Refactor items behavior with prefixItems Julian/jsonschema#782: Update validation message for unevaluatedProperties and unevaluatedItems Julian/jsonschema#782: Fixes failing styles Julian/jsonschema#782: Adapt validator test for draft2020-12, fixes code styles Julian/jsonschema#782: Fixes relative json pointer format validation for leading zero on digit Julian/jsonschema#782: Load dependencies from legacy validators Julian/jsonschema#782: Implements dynamicRef validations Julian/jsonschema#782: Add validation for uuid format Julian/jsonschema#782: Implements defs validations Julian/jsonschema#782: Extend resolver for anchor Julian/jsonschema#782: Fixes ref resolver for folders Julian/jsonschema#782: Fixes ref validation priority Julian/jsonschema#782: Extend implementation of ref Julian/jsonschema#782: Implements unevaluatedProperties validations Julian/jsonschema#782: Implements unevaluatedItems validations Julian/jsonschema#782: Extend contains with minContains and maxContaints, add contains legacy validator Julian/jsonschema#782: Adapt items to work with prefixItems Julian/jsonschema#782: Add checks for prefixItems, basic check for unevaluatedItems Julian/jsonschema#782: Extend format check for draft2020-12, add duration format check Julian/jsonschema#782: Add dependentRequired and dependentSchemas validation Julian/jsonschema#782: Split format and regular test cases on draft2020-12 Julian/jsonschema#782: Enable draft2020-12 test suite
| * | Julian/jsonschema#782: Remove ecmascript validation, extend dynamicRef skip ↵Harald Nezbeda2021-07-211-62/+4
| | | | | | | | | | | | description
| * | Julian/jsonschema#782: Add compatibility to draft7 and olderHarald Nezbeda2021-07-212-17/+29
| | |
| * | Julian/jsonschema#782: Code clenaup, fixes validation messagesHarald Nezbeda2021-07-216-129/+93
| | |
| * | Julian/jsonschema#782: Extend format testsHarald Nezbeda2021-07-201-0/+19
| | |
| * | Julian/jsonschema#782: Resolve meta schema vocabularies from local cacheHarald Nezbeda2021-07-2010-5/+317
| | |
| * | Julian/jsonschema#782: Refactor items behavior with prefixItemsHarald Nezbeda2021-07-201-18/+3
| | |
| * | Julian/jsonschema#782: Update validation message for unevaluatedProperties ↵Harald Nezbeda2021-07-202-2/+46
| | | | | | | | | | | | and unevaluatedItems
| * | Julian/jsonschema#782: Fixes failing stylesHarald Nezbeda2021-07-202-3/+22
| | |