summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Minor restructure of which html sphinx builder we build in the tox.ini.v4.0.0a4Julian Berman2021-08-242-13/+6
|
* Be furoious.Julian Berman2021-08-243-1/+17
|
* Unskip more passing tests.Julian Berman2021-08-241-86/+16
|
* Fix items' instance path as well.Julian Berman2021-08-242-3/+58
|
* And simplify items as well.Julian Berman2021-08-241-16/+9
|
* Slightly nicer error message for not.Julian Berman2021-08-232-4/+3
|
* Merge pull request #833 from hrnciar/remove-shebangsJulian Berman2021-08-232-2/+0
|\ | | | | Remove shebangs from nonexecutable scripts
| * Remove shebangs from nonexecutable scriptsTomas Hrnciar2021-08-232-2/+0
|/ | | | | | | | | | | | | When packaging jsonschema and poetry-core (which bundles it) in Fedora, we have realised that there are nonexecutable files with a shebang line. It seems that the primary purpose of these files is to be imported from Python code and hence the shebangs appear to be unnecessary. Shebangs are hard to handle when doing downstream packaging, because it makes sense for upstream to use `#!/usr/bin/env` python while in the RPM package, we need to avoid that and use a more specific interpreter. Since the shebangs were unused, I propose to remove them to avoid problems.
* Remove a test that is only relevant for Py2+3 combined codebases.Julian Berman2021-08-231-6/+0
|
* Fix the schema path used by prefixItems errors.Julian Berman2021-08-232-7/+53
| | | | Also simplify its implementation, what it's doing is just zip.
* Sigh, flake8.Julian Berman2021-08-211-2/+2
|
* And deprecate importing ErrorTree from jsonschema.validators.Julian Berman2021-08-212-10/+29
|
* Build RTD with 3.8v4.0.0a3Julian Berman2021-08-201-1/+1
|
* 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