summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Slightly tidy the section on protocols in the docs.Julian Berman2022-08-301-22/+18
|
* Update the README links to point to the API docs.Julian Berman2022-08-291-7/+7
|
* Merge pull request #989 from python-jsonschema/apiJulian Berman2022-08-2913-15/+91
|\ | | | | Enable dedicated API documentation page(s)
| * Another RTD-only failed ref.Julian Berman2022-08-291-1/+1
| |
| * And now yet again some new failures...Julian Berman2022-08-291-1/+1
| |
| * Wouldn't be complete without refs which fail now only in ReadTheDocs. :/Julian Berman2022-08-292-5/+6
| |
| * Of course the tweaked name doesn't work on macOS.Julian Berman2022-08-291-2/+2
| | | | | | | | Hopefully this works on both.
| * Fix some ambiguous API refs which only fail on Sphinx+Linux :/Julian Berman2022-08-291-5/+6
| |
| * Experiment with autoapi for generating explicit API documentation.Julian Berman2022-08-2910-4/+78
|/ | | | Ref: #590
* Add a note to the CHANGELOG about the minor ref change.Julian Berman2022-08-281-0/+8
|
* Fix $id in the presence of $ref on draft 6 and 7.Julian Berman2022-08-283-21/+22
| | | | | | | | | | In these drafts, not only did $ref cause other validator keywords to be ignored, it prevents $id from setting the resolution scope too. In draft 3 and 4 this is now half-fixed in the sense that the correct URI is now the one that will be retrieved, but the logic for finding subschemas by ID is still broken on these drafts.
* Don't skip tests while debugging.Julian Berman2022-08-281-1/+1
| | | | | This will maybe get annoying if debugging many at once, but works better for specifically mentioning one test.
* Remove the TODO for draft 7 content assertions.Julian Berman2022-08-281-23/+0
| | | | See https://github.com/python-jsonschema/jsonschema/issues/593#issuecomment-1221527128
* Remove backticks from section headings.Julian Berman2022-08-281-6/+6
| | | | | Sphinx/intersphinx generates really weird or unreferenceable labels when these are here.
* Disable max line length in doc8.Julian Berman2022-08-231-1/+1
| | | | We'll slowly move to sentence-per-line.
* Document slightly more clearly how this library interacts with non-JSON.Julian Berman2022-08-232-3/+33
| | | | Closes: #788
* Add a note to the CHANGELOG about the typing tweaks.v4.14.0Julian Berman2022-08-211-0/+1
|
* Add ID_OF to the protocol, and schemas are arbitrary mappings.Julian Berman2022-08-211-6/+10
| | | | They aren't necessarily dicts.
* Tell mypy to show codes, which are needed to ignore.Julian Berman2022-08-211-0/+1
|
* Fix unevaluatedItems on draft2019.Julian Berman2022-08-204-59/+82
| | | | | | | | This was trivial, other than needing to copy paste the function which anyhow needs removal. It only didn't work previously because of the items -> prefixItems rename in draft2020.
* We've wontfixed the upstream issue.Julian Berman2022-08-202-2/+4
|
* Deprecate FormatChecker.cls_checks.Julian Berman2022-08-204-3/+42
| | | | | | It exposes fragile global state. Closes: #519.
* More tweaking of type-hinted Sphinx docstrings for TypeCheckers.Julian Berman2022-08-201-32/+19
|
* Type pmap using pyrsistent's typing.Julian Berman2022-08-201-15/+9
| | | | Dealing with mypy is <insert 4 letter word here>.
* Standardize the format of Raises: in napolean docstrings.Julian Berman2022-08-204-10/+14
| | | | | | | | | | | | | | | Sphinx appears to 'helpfully' silently truncate the line if any text is put on the same line as the exception, i.e.: Raises: foo, if bar just silently produces: foo - and throws the line away...
* Convert more docs in protocols to napoleon.Julian Berman2022-08-201-26/+56
| | | | | Also rely more on sphinx's type annotation support, which seems to detect the argument types without duplicating.
* Remove the search page from the docs.Julian Berman2022-08-201-1/+0
| | | | | This page shows totally blank, and rst search barely works anyhow.
* Document the install extras in the README/docs.Julian Berman2022-08-201-0/+14
|
* Fix mypy types for protocols.ValidatorJulian Berman2022-08-201-4/+4
| | | | | | | | | iter_errors returns an iterable, and doesn't guarantee it's an iterator (this is present in the text documentation). And instances are any Python object, not just dicts. (CC @sirosen just FYI and in case I made some silly error).
* Remove a stray comma.Julian Berman2022-08-201-1/+1
|
* 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
| |