summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Cache dependencies in CI.ci-cacheJulian Berman2022-08-201-0/+10
| | | | Maybe this makes this faster...
* Try enabling readthedocs/actions/preview for PR previews.Julian Berman2022-08-191-0/+16
|
* Follow pypa/gh-action-pypi-publish#83.Julian Berman2022-08-191-1/+1
|
* Support validator classes whose metaschema uses a different dialect.v4.13.0Julian Berman2022-08-193-1/+44
| | | | | | | | | | | In other words, one may author validator classes (via jsonschema.validators.create or extend) whose meta schema defines schema behavior using JSON Schema draft2020-12 but whose schemas are in its own dialect. Said again differently, the set of valid schemas for a validator class may be governed by one draft, while the schema behavior itself is governed by another.
* Remove some old unnecessary explicit object superclasses.Julian Berman2022-08-1811-19/+19
|
* Update the CHANGELOG.v4.12.1Julian Berman2022-08-181-0/+15
|
* Merge pull request #987 from hynek/fix-markersJulian Berman2022-08-182-4/+4
|\ | | | | Use rST markers in README
| * Use rST markers in READMEHynek Schlawack2022-08-182-4/+4
|/
* Warn at runtime when subclassing validator classes.v4.12.0Julian Berman2022-08-183-4/+45
| | | | | | | | | | | | | Doing so was not intended to be public API, though it seems some downstream libraries do so. A future version will make this an error, as it is brittle and better served by composing validator objects instead. Feel free to reach out if there are any cases where changing existing code seems difficult and I can try to provide guidance. Refs: #982
* Fix the rest of the CHANGELOG headings from #983.v4.11.0Julian Berman2022-08-181-3/+8
|
* Merge pull request #983 from hynek/fancy-sparklesJulian Berman2022-08-183-50/+77
|\ | | | | jsonschema deserves a ✨fancy✨ readme
| * Cut the middle partHynek Schlawack2022-08-182-0/+9
| |
| * Change version header markersHynek Schlawack2022-08-182-49/+48
| |
| * jsonschema deserves a ✨fancy✨ readmeHynek Schlawack2022-08-171-3/+22
| |
* | Use an explicit default provided to validator_for in all cases.v4.10.3Julian Berman2022-08-183-12/+28
| | | | | | | | | | | | | | | | Previously it was only used when $schema was not present, but clearly it should be used even when it is but the URI is not recognized. Combined with #981 this *hopefully* now handles the remaining downstream users with subclasses.
* | Fix one more Validator.evolve issue for downstream Validators.v4.10.2Julian Berman2022-08-173-5/+14
| | | | | | | | | | | | Here for renamed attributes out of attrs-using classes. Refs: 'https://github.com/python-jsonschema/jsonschema/issues/982#issuecomment-1218117191'
* | Fix calling Validator.evolve for some downstream users.v4.10.1Julian Berman2022-08-173-1/+44
|/ | | | | | | | | | | | | | The broken case here was subclassing a validator class, something that isn't really a supported use of the Validator classes, but of course one can't blame anyone too much since doing so didn't raise an error or emit any warning. In the next release subclassing will warn, and at some point afterwards will become an explicit error. If you're a downstream user of this library looking for a way to avoid whichever inheritance is currently needed in your library feel free to reach out and I'll try to help. Closes: #982
* Merge commit 'af8abbb870562f38fa8f760f0462645277dc0e89'Julian Berman2022-08-171-1/+5
|\ | | | | | | | | * commit 'af8abbb870562f38fa8f760f0462645277dc0e89': Squashed 'json/' changes from 14d05dcea..4cfead7ba
| * Squashed 'json/' changes from 14d05dcea..4cfead7baJulian Berman2022-08-171-1/+5
| | | | | | | | | | | | | | 4cfead7ba Fix #585 on Windows. git-subtree-dir: json git-subtree-split: 4cfead7ba7b1af840eaf95f19a088c89ed67b5a9
* | Specify a python-version for the pre-commit job.Julian Berman2022-08-171-1/+3
| |
* | Better error message for network access in test runs.Julian Berman2022-08-171-2/+2
| |
* | Tweak remote URIs when running the upstream test suite.Julian Berman2022-08-171-4/+1
| | | | | | | | | | | | The full remote URI is now properly emitted upstream. Ref: json-schema-org/JSON-Schema-Test-Suite#585.
* | Merge commit '5d6a9931ff0d606b273c36a20bd0444a2a61ea24'Julian Berman2022-08-172-6/+37
|\ \ | |/ | | | | | | * commit '5d6a9931ff0d606b273c36a20bd0444a2a61ea24': Squashed 'json/' changes from b3c8672a3..14d05dcea
| * Squashed 'json/' changes from b3c8672a3..14d05dceaJulian Berman2022-08-172-6/+37
| | | | | | | | | | | | | | | | | | | | 14d05dcea Merge pull request #585 from json-schema-org/absolute-uri b643e11fa Tweak the remotes retrieval README language a bit more. 0c90a5f98 Explicitly mention the base URI for those not using jsonschema_remotes. 79daf05b6 Emit fully absolute URIs from `jsonschema_suite remotes`. git-subtree-dir: json git-subtree-split: 14d05dcea95edd138fca251b2a9cf99bd32426bf
* | Use the now-separated out sphinx-json-schema-spec for docs.Julian Berman2022-08-174-158/+11
| |
* | Bump versions in the GH Actions workflow.Julian Berman2022-08-171-3/+3
| |
* | Update the documentation interlinks to point to 2020-12.v4.10.0Julian Berman2022-08-161-35/+42
| |
* | Replace references to draft 3 in a few more doc examples.Julian Berman2022-08-162-15/+15
| |
* | Prefer 'keyword' over 'validator' in docs.Julian Berman2022-08-1612-108/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In newer JSON Schema specifications we've standardized more on this language rather than calling things validators (and such a thing already has plenty of overloaded meaning here). This commit doesn't do any deprecation, so there's still some awkwardness in that ValidationError.validator is the keyword which failed validation, and Validator.VALIDATORS is a mapping of keywords to callables. We may choose to do so later, but for now will save some API churn in case something else changes.
* | Add support for referencing schemas across different drafts.Julian Berman2022-08-164-1/+35
| | | | | | | | | | | | | | | | In other words, a draft 7 schema may reference a draft 2019 schema (or vice versa), and now correctly apply the 2019 rules within the referenced schema. Refs: json-schema-org/JSON-Schema-Test-Suite#587
* | Merge commit '74e91ee79990c28d937d54a6d2f9d18fd338af20'Julian Berman2022-08-168-0/+113
|\ \ | |/ | | | | | | * commit '74e91ee79990c28d937d54a6d2f9d18fd338af20': Squashed 'json/' changes from 597b1fb0d..b3c8672a3
| * Squashed 'json/' changes from 597b1fb0d..b3c8672a3Julian Berman2022-08-168-0/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | b3c8672a3 Merge pull request #587 from json-schema-org/cross-draft-tests e2a681ac6 $comment -> comment 52eb27902 add draft 2020-12 -> draft 2019-09 test c4ed16dfe add draft 2019-09 -> draft 7 test 3df4712a9 add draft 2019-09 -> draft 2020-12 test dab94face add draft 7 -> draft 2019-09 test dfcea626f Merge pull request #584 from json-schema-org/doi e4a59d962 Add a badge for a Zenodo DOI. git-subtree-dir: json git-subtree-split: b3c8672a3fa0a0691124e455680b34d5512cae94
* | Merge commit '297cb8c4830ef4080d6ccf7ef7e0c0a4eb94342c'Julian Berman2022-08-0812-0/+600
|\ \ | |/ | | | | | | * commit '297cb8c4830ef4080d6ccf7ef7e0c0a4eb94342c': Squashed 'json/' changes from 0015d5242..597b1fb0d
| * Squashed 'json/' changes from 0015d5242..597b1fb0dJulian Berman2022-08-0812-0/+600
| | | | | | | | | | | | | | 597b1fb0d Ensure JS implementations don't traverse the prototype chain. git-subtree-dir: json git-subtree-split: 597b1fb0dd96c6bf59d96a4169e81d5281755aab
* | Merge commit '9e7387d89098b43062b9cbab177cd15aad965f6a'Julian Berman2022-08-064-14/+14
|\ \ | |/ | | | | | | * commit '9e7387d89098b43062b9cbab177cd15aad965f6a': Squashed 'json/' changes from 91ecacf60..0015d5242
| * Squashed 'json/' changes from 91ecacf60..0015d5242Julian Berman2022-08-064-14/+14
| | | | | | | | | | | | | | | | | | | | 0015d5242 Merge pull request #583 from santhosh-tekuri/defs e14c68bb4 Replace '$defs' with 'definitions' in drafts 6,7 c4341bd0a Merge pull request #582 from santhosh-tekuri/defs 4ae2c9b93 Replace '$defs' with 'definitions' in draft 6,7 git-subtree-dir: json git-subtree-split: 0015d5242d146248cb47850a08012b4829462d3b
* | Close the tempfile for PyPy+Windows.Julian Berman2022-08-061-0/+2
| | | | | | | | | | Otherwise there's no guarantee it's closed by the time we try to os.remove, and Windows doesn't like that very much.
* | Fix the skip for <3.9 leading zero ipv4 tests.Julian Berman2022-08-061-3/+1
| |
* | Re-enable more windows envs in CI.Julian Berman2022-08-062-49/+4
| | | | | | | | | | | | Enable UTF-8 mode to prevent cp1252 errors during test runs. See https://docs.python.org/3/using/windows.html#utf-8-mode
* | Use the right Python version in the coverage workflow.Julian Berman2022-08-061-1/+1
| |
* | Merge commit 'b9ff8c481f054bff83dad4c5b4da0efc221175f2'Julian Berman2022-08-0661-191/+198
|\ \ | |/ | | | | | | * commit 'b9ff8c481f054bff83dad4c5b4da0efc221175f2': Squashed 'json/' changes from f82764080..91ecacf60
| * Squashed 'json/' changes from f82764080..91ecacf60Julian Berman2022-08-0661-191/+198
| | | | | | | | | | | | | | | | 91ecacf60 Forward port a missing null instance property test. fe3eda228 Apply #579 to case descriptions as well. git-subtree-dir: json git-subtree-split: 91ecacf6093692d0fc0082f7a08ed74f74a5f715
* | Yet another urljoin issue with the internal helper.Julian Berman2022-08-061-1/+1
| |
* | Fix the skip test renames.Julian Berman2022-08-061-5/+21
| |
* | Merge commit '7a5fd08611cb2fb07b8200860a4e352eb33ae7bf'Julian Berman2022-08-0660-266/+242
|\ \ | |/ | | | | | | * commit '7a5fd08611cb2fb07b8200860a4e352eb33ae7bf': Squashed 'json/' changes from 2782d7c29..f82764080
| * Squashed 'json/' changes from 2782d7c29..f82764080Julian Berman2022-08-06527-17042/+1467
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f82764080 Merge pull request #579 from json-schema-org/sanity-check-strengthening e5d5e0a2a Also prevent 'tests that' from descriptions. eaf06b1e8 Remove the last few 'shoulds' from items descriptions. b7da24fba Kill more shoulds from ECMA and ref tests. 85899fdf4 More description cleanup for Bengali non-ASCII tests. b84b900f3 Remove 'should' from a format test which anyhow needed a clearer description. 721397c1f Prevent tests from using 'should' in sanity check. 68f380c6f Fix the last non-unique case descriptions. 6383ef638 Remove mistakenly duplicated anyOf tests in draft{4,6,7}. a5b459fa0 Make sure bignum cases have unique descriptions. b82b18cdf Assert case descriptions are also unique in sanity checks. d3d082219 Also check case description length in sanity checks. 5e7804c52 Use subtests when running sanity checks. 8ade92340 Fix two last clashing $ids in draft-next too. git-subtree-dir: json git-subtree-split: f8276408005489aa134ec857f5fd3f0fb3ec5954
* | Should have just used a URL library for the test helpers...Julian Berman2022-08-051-5/+1
| |
* | Complain if the test suite hits the network while running.Julian Berman2022-08-051-0/+8
| | | | | | | | | | This is obviously non-ideal, and hits the same issue #693 asks to fix.
* | Add a way to run the test suite with xfail instead of skip.Julian Berman2022-08-052-21/+189
| | | | | | | | | | | | | | | | Makes it easier to see when something's fixed. As part of this, also 'explode' which tests we skip, so now it's just those that fail, even though that can be lots more verbose.
* | Improve the internal skipped-test helper messages.Julian Berman2022-08-051-1/+25
|/