| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Maybe this makes this faster...
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|\
| |
| | |
Use rST markers in README
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|\
| |
| | |
jsonschema deserves a ✨fancy✨ readme
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
Here for renamed attributes out of attrs-using classes.
Refs: 'https://github.com/python-jsonschema/jsonschema/issues/982#issuecomment-1218117191'
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
* commit 'af8abbb870562f38fa8f760f0462645277dc0e89':
Squashed 'json/' changes from 14d05dcea..4cfead7ba
|
| |
| |
| |
| |
| |
| |
| | |
4cfead7ba Fix #585 on Windows.
git-subtree-dir: json
git-subtree-split: 4cfead7ba7b1af840eaf95f19a088c89ed67b5a9
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
The full remote URI is now properly emitted upstream.
Ref: json-schema-org/JSON-Schema-Test-Suite#585.
|
|\ \
| |/
| |
| |
| | |
* commit '5d6a9931ff0d606b273c36a20bd0444a2a61ea24':
Squashed 'json/' changes from b3c8672a3..14d05dcea
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
| |
| |
| | |
* commit '74e91ee79990c28d937d54a6d2f9d18fd338af20':
Squashed 'json/' changes from 597b1fb0d..b3c8672a3
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
| |
| |
| | |
* commit '297cb8c4830ef4080d6ccf7ef7e0c0a4eb94342c':
Squashed 'json/' changes from 0015d5242..597b1fb0d
|
| |
| |
| |
| |
| |
| |
| | |
597b1fb0d Ensure JS implementations don't traverse the prototype chain.
git-subtree-dir: json
git-subtree-split: 597b1fb0dd96c6bf59d96a4169e81d5281755aab
|
|\ \
| |/
| |
| |
| | |
* commit '9e7387d89098b43062b9cbab177cd15aad965f6a':
Squashed 'json/' changes from 91ecacf60..0015d5242
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| | |
Otherwise there's no guarantee it's closed by the time we try
to os.remove, and Windows doesn't like that very much.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Enable UTF-8 mode to prevent cp1252 errors during test runs.
See https://docs.python.org/3/using/windows.html#utf-8-mode
|
| | |
|
|\ \
| |/
| |
| |
| | |
* commit 'b9ff8c481f054bff83dad4c5b4da0efc221175f2':
Squashed 'json/' changes from f82764080..91ecacf60
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| | |
* commit '7a5fd08611cb2fb07b8200860a4e352eb33ae7bf':
Squashed 'json/' changes from 2782d7c29..f82764080
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| |
| |
| |
| |
| | |
This is obviously non-ideal, and hits the same issue #693 asks
to fix.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/ |
|