summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Re-add the JSON trove classifiers.HEADv4.18.0a7mainJulian Berman2023-05-161-1/+3
| | | | This probably worked before, but I typoed the classifiers ha.
* Fix an additional unintentional resolution scope change in RefResolverv4.18.0a6Julian Berman2023-04-272-8/+18
| | | | Closes: #1085
* Looks like Hatchling needs a bump before this can actually happen.Julian Berman2023-04-251-2/+0
| | | | | | Revert "Add the new JSON and JSON Schema classifiers, hooray!" This reverts commit 9bd72530f100c16bfe3e6b0b35abe7de70087ef9.
* Add the new JSON and JSON Schema classifiers, hooray!Julian Berman2023-04-251-0/+2
|
* Merge commit 'b695cd7efa3e40fc41721792b4a692436b9eca39'Julian Berman2023-04-2533-56/+1239
|\ | | | | | | | | * commit 'b695cd7efa3e40fc41721792b4a692436b9eca39': Squashed 'json/' changes from 0788c226a..6afa9b38d
| * Squashed 'json/' changes from 0788c226a..6afa9b38dJulian Berman2023-04-2533-56/+1239
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6afa9b38d Merge pull request #664 from santhosh-tekuri/empty-tokens e4bceb1ad Bump the python-jsonschema version used for the sanity check. 8025fc0d5 Merge pull request #128 from iainbeeston/foundations-of-json-schema-paper cf7677078 Make all root $ids absolute URIs 07fd389a3 Added test cases from Foundations of JSON Schema research paper 1008edcee ref: test empty tokens in json-pointer 9beb3cfba Merge pull request #627 from json-schema-org/ether/output-readme-fixes f2b0490ba minor edit to trigger gh action c305ce54f Merge pull request #669 from hauner/typo 5e2845c1e Merge pull request #668 from hauner/if-without-then-else-creates-annotations 2f1df2293 typo c1fae0022 test unevaluated* can see annotations from if without then/else 987a4c8fc Merge pull request #666 from json-schema-org/gregsdennis/file-refs 90b2a58ce fix *nix uris 68d18c6ac rename tests to fix sanity check e9166bcbe fix indentation 1d1ec749a add file-id ref tests fb60ed17c Merge pull request #663 from json-schema-org/ether/restore-format-tests f32cd8b80 Revert "Revert "by default, "format" only annotates, not validates"" 47958f82d Merge pull request #654 from santhosh-tekuri/output-escape 5262997e1 Merge pull request #661 from santhosh-tekuri/2019-output ce2c16573 output-tests: correct 2019 output-schema.json c9d943856 output: ensure ~ and / are escaped in json-pointer f6b2324bf minor spelling and markdown formatting fixes; `valid` has also been removed from the tests git-subtree-dir: json git-subtree-split: 6afa9b38d84d45550ec703123eb4e8ec67a8ae75
* | Re-enable (but deprecate) automatic reference retrieval.Julian Berman2023-04-253-7/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | Changing this without deprecation is backwards incompatible, so we re-introduce a warning. This only applies if you have not configured neither a Registry nor a legacy RefResolver. Both of the former 2 cases already have 'correct' behavior (the former will not automatically retrieve references and is not backwards incompatible as it is a new API, and the latter will do so but is already fully deprecated by this release). Cloess: #1089
* | Ignore non-str $ids for *deprecated* RefResolver resolution.v4.18.0a5Julian Berman2023-04-252-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | The new referencing behavior is more correct (which is why it exists), but also means that even though `RefResolver` was/is untouched, it can be called now with more subschemas than previously, and in some cases that tickles this code to blow up (see the closed issue for a specific example). We simply now ignore non-strs, as doing so is no more wrong than this code used to be. Closes: #1085
* | Wrap raised referencing exceptions in a RefResolutionError subclass.v4.18.0a4Julian Berman2023-04-173-1/+50
| | | | | | | | | | | | | | | | | | | | | | | | Even though RefResolutionError is deprecated (and already raises a suitable warning), this should make some additional code warn rather than blow up (i.e. if someone is catching RefResolutionError, that code should continue to work though it will raise a warning). Users can transition to non-deprecated APIs by directly catching referencing.exceptions.Unresolvable. Closes: #1069
* | Update requirements.Julian Berman2023-04-132-8/+8
| |
* | Update docs requirements.v4.18.0a3Julian Berman2023-03-281-5/+5
| |
* | Bump the minimum referencing version again.Julian Berman2023-03-281-1/+1
| |
* | Add a few more lines to the CHANGELOG.Julian Berman2023-03-281-0/+2
| |
* | Merge pull request #1075 from ↵Julian Berman2023-03-281-16/+9
|\ \ | | | | | | | | | | | | ikonst/2023-03-27-unevaluatedProperties-do-not-validate Don't evaluate properties twice on behalf of `unevaluatedProperties` validation
| * | lintIlya Konstantinov2023-03-281-4/+3
| | |
| * | lintIlya Konstantinov2023-03-271-3/+4
| | |
| * | Do not validate for unevaluatedPropertiesIlya Konstantinov2023-03-271-13/+6
| | |
* | | Merge commit 'c8c0bdd52999e4e1a6a38ceca814d0943f3e7962'Julian Berman2023-03-284-0/+80
|\ \ \ | | |/ | |/| | | | | | | * commit 'c8c0bdd52999e4e1a6a38ceca814d0943f3e7962': Squashed 'json/' changes from 19947eaa1..0788c226a
| * | Squashed 'json/' changes from 19947eaa1..0788c226aJulian Berman2023-03-284-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | 0788c226a Merge pull request #659 from jvtm/python311-date-iso8601-values 4248f3c73 test: cover ISO8601 date values accepted by Python 3.11 datetime module git-subtree-dir: json git-subtree-split: 0788c226aa30f5e8fa862f4aa80e59a0f5186597
* | | Merge pull request #1076 from ↵Julian Berman2023-03-281-1/+6
|\ \ \ | |_|/ |/| | | | | | | | jvtm/python311-date-fromisoformat-allows-extra-formats fix: Python 3.11 date.fromisoformat() allows extra formats
| * | fix: Python 3.11 date.fromisoformat() allows extra formatsJyrki Muukkonen2023-03-281-1/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3.11 and later allow additional ISO8601 formats in `datetime` module ISO8601 parsing. These formats are not RFC3339 section 5.6 compliant. Especially `datetime.date.fromisoformat()` now allows strings like: * `20230328` (2023-03-28) * `2022W527` (2023-01-01) * `2023-W01` (2023-01-02) * `2023-W13-2` (2023-03-28) Fix by doing a regular expression check before passing the value to `datetime` module. This made the original `.isascii()` check unnecessary. See: * https://docs.python.org/3/whatsnew/3.11.html#datetime * https://github.com/python/cpython/commit/1303f8c927 * https://docs.python.org/3.11/library/datetime.html#datetime.date.fromisoformat * https://www.rfc-editor.org/rfc/rfc3339#section-5.6 Tests covering the invalid values to be sent to json-schema-org/JSON-Schema-Test-Suite Fixes #1056.
* | Exclude bots from release notes.Julian Berman2023-03-251-0/+5
| |
* | Update minimum requirements for referencing libraries.Julian Berman2023-03-232-6/+6
| |
* | Always pass a URI to referencing.jsonschema.specification_with.Julian Berman2023-03-231-1/+1
| | | | | | | | (This could previously be None incorrectly).
* | Bump the minimum jsonschema-specifications/rpds versions to avoid #1059v4.18.0a2Julian Berman2023-03-203-11/+39
| | | | | | | | | | This should re-enable validating from a thread other than the one that originall imported jsonschema.
* | Allow the PSFL in non-GPL licenses.Julian Berman2023-03-201-1/+1
| |
* | Merge pull request #1063 from aryanA101a/patch-1Julian Berman2023-03-201-1/+1
|\ \ | | | | | | documentation mistype fix
| * | documentation mistype fixAryan Arora2023-03-201-1/+1
|/ / | | | | Draft202012Validator.validate instead of Draft20212Validator.validate
* | Add 2 more minor deprecations to the changelog.v4.18.0a1Julian Berman2023-03-151-0/+11
| |
* | We were relying on an import * for doctests.Julian Berman2023-03-151-0/+1
| | | | | | | | | | | | (Of course mostly for laziness -- but this now doesn't import the exceptions module which doesn't appear in __all__, which was added for E401 style lints, which...)
* | Another dangling Sphinx ref that seemed to only fail on Ubuntu.Julian Berman2023-03-152-0/+3
| |
* | Enable ruff's simplify rules too.Julian Berman2023-03-155-34/+22
| |
* | flake8 -> ruff, a mostly painless affair.Julian Berman2023-03-1513-67/+85
| |
* | Remove a codepath meant for 3.7.Julian Berman2023-03-151-14/+8
| | | | | | | | (We no longer support it.)
* | Newer attrs API in validators.py and some type hints for create.Julian Berman2023-03-153-29/+69
| |
* | Ignore additionalItems when items isn't present on 2019.Julian Berman2023-03-142-3/+4
| | | | | | | | This is specified behavior, see json-schema-org/JSON-Schema-Test-Suite#643.
* | Merge commit '5e16d74500493ef164b595daec622c4ba199644e'Julian Berman2023-03-1438-26/+833
|\ \ | |/ | | | | | | * commit '5e16d74500493ef164b595daec622c4ba199644e': Squashed 'json/' changes from f57d3e0cc..19947eaa1
| * Squashed 'json/' changes from f57d3e0cc..19947eaa1Julian Berman2023-03-1438-26/+833
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 19947eaa1 test: unevaluatedProperties not affected by propertyNames 829270631 Check that large integers are multiples of small multipleOf b59543f6e Merge pull request #647 from santhosh-tekuri/ref-start-slash 6e5d45d71 Merge pull request #646 from santhosh-tekuri/vocab-optional 0311dfda0 Merge pull request #651 from santhosh-tekuri/dynamicref-without-anchor 4503eeaf4 test: A $dynamicRef without anchor in fragment behaves identical to $ref 39af4c1ba test: $ref with absolute-path-reference 880c9933b test/vocabulary: ignore unrecognized optional vocabulary fd80307ff Merge pull request #642 from santhosh-tekuri/time-2digit a76ae650d Merge pull request #645 from json-schema-org/gregsdennis/add-vocab-tests-link 0e2b4eefd Merge pull request #643 from 0xSudarshan/main 2b78ccfc4 slight tweaking to wording 8716c4054 add link for vocab test suite to readme c49ba5445 Fix an incorrect $schema identifier. f0e5ce71e Added test for schema-items alongside "ignored" additionalItems 76dae88ab Merge pull request #640 from santhosh-tekuri/refRemote-anchor cb82e237c Merge pull request #641 from json-schema-org/gregsdennis/unevaluated-not-draft-next e4afd233a test/format: hour, min, sec must be two digits 7efd51313 fix unevaluatedProperties/not tests for draft-next e39c6ea6a test/refRemote: anchor within remote ref bf51b32fb Merge pull request #639 from json-schema-org/additionalItems-unevaluatedItems 52160b368 Add a test for 2019's interaction between additional/unevaluatedItems 69a09a339 Fixed tests for annotation collection inside not. e4e1a220b Draft7 if/then/else ref tests need to be wrapped in an allOf. f5bd2f6c3 Merge pull request #632 from json-schema-org/ether/annotations-inside-not 626b433e5 test that annations are collected inside a "not" git-subtree-dir: json git-subtree-split: 19947eaa1289168a49edd21bb7a8aa2098069ae0
* | Try yet again??Julian Berman2023-03-141-0/+1
| | | | | | | | | | | | | | | | | | | | No idea why RTD seems to say: Problem in your project's configuration. Invalid "build.tools.python": .readthedocs.yml: Invalid configuration option: build.tools.python. but let's hope it's some very very very specific hope that the file is called .yaml now??
* | Take 3 on fixing RTD PDF Builds.Julian Berman2023-03-141-3/+6
| | | | | | | | | | | | | | | | Let's try combining advice from: https://github.com/ImageMagick/ImageMagick/discussions/2033#discussioncomment-16094 https://github.com/readthedocs/readthedocs-docker-images/issues/155#issuecomment-1020655379
* | Merge pull request #1055 from python-jsonschema/maybe-fix-pdf-buildsJulian Berman2023-03-141-0/+1
|\ \ | | | | | | Maybe fix PDF builds (in ReadTheDocs).
| * | Maybe fix PDF builds (in ReadTheDocs).Julian Berman2023-03-141-0/+1
|/ /
* | Mention 3.7 support being dropped in the CHANGELOG.Julian Berman2023-03-141-1/+5
| | | | | | | | And elaborate even further on the ref change.
* | Merge pull request #1049 from python-jsonschema/referencingJulian Berman2023-03-1449-2113/+1052
|\ \ | | | | | | Replace `$ref` & `$dynamicRef` support / `RefResolver` with the new referencing library
| * | Another version bump.Julian Berman2023-03-132-5/+5
| | |
| * | Link to the new referencing doc page.Julian Berman2023-03-093-10/+10
| | |
| * | Bump requirements.Julian Berman2023-03-082-17/+17
| | |
| * | Speed up Validator.evolve by pre-computing fields.Julian Berman2023-03-061-17/+61
| | | | | | | | | | | | | | | | | | | | | | | | We're not a general class, so we know what fields we need ahead of time. This seems to give ~15% speedup on Validator evolution, which happens often as part of walking up and down schemas.
| * | Avoid whatever nonsense pkg_resources error.Julian Berman2023-03-061-2/+2
| | | | | | | | | | | | Just use virtue in CI.
| * | Replace the other usages of pyrsistent with rpds.Julian Berman2023-03-065-23/+16
| | |