Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Slightly tidy the section on protocols in the docs. | Julian Berman | 2022-08-30 | 1 | -22/+18 |
| | |||||
* | Update the README links to point to the API docs. | Julian Berman | 2022-08-29 | 1 | -7/+7 |
| | |||||
* | Merge pull request #989 from python-jsonschema/api | Julian Berman | 2022-08-29 | 13 | -15/+91 |
|\ | | | | | Enable dedicated API documentation page(s) | ||||
| * | Another RTD-only failed ref. | Julian Berman | 2022-08-29 | 1 | -1/+1 |
| | | |||||
| * | And now yet again some new failures... | Julian Berman | 2022-08-29 | 1 | -1/+1 |
| | | |||||
| * | Wouldn't be complete without refs which fail now only in ReadTheDocs. :/ | Julian Berman | 2022-08-29 | 2 | -5/+6 |
| | | |||||
| * | Of course the tweaked name doesn't work on macOS. | Julian Berman | 2022-08-29 | 1 | -2/+2 |
| | | | | | | | | Hopefully this works on both. | ||||
| * | Fix some ambiguous API refs which only fail on Sphinx+Linux :/ | Julian Berman | 2022-08-29 | 1 | -5/+6 |
| | | |||||
| * | Experiment with autoapi for generating explicit API documentation. | Julian Berman | 2022-08-29 | 10 | -4/+78 |
|/ | | | | Ref: #590 | ||||
* | Add a note to the CHANGELOG about the minor ref change. | Julian Berman | 2022-08-28 | 1 | -0/+8 |
| | |||||
* | Fix $id in the presence of $ref on draft 6 and 7. | Julian Berman | 2022-08-28 | 3 | -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 Berman | 2022-08-28 | 1 | -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 Berman | 2022-08-28 | 1 | -23/+0 |
| | | | | See https://github.com/python-jsonschema/jsonschema/issues/593#issuecomment-1221527128 | ||||
* | Remove backticks from section headings. | Julian Berman | 2022-08-28 | 1 | -6/+6 |
| | | | | | Sphinx/intersphinx generates really weird or unreferenceable labels when these are here. | ||||
* | Disable max line length in doc8. | Julian Berman | 2022-08-23 | 1 | -1/+1 |
| | | | | We'll slowly move to sentence-per-line. | ||||
* | Document slightly more clearly how this library interacts with non-JSON. | Julian Berman | 2022-08-23 | 2 | -3/+33 |
| | | | | Closes: #788 | ||||
* | Add a note to the CHANGELOG about the typing tweaks.v4.14.0 | Julian Berman | 2022-08-21 | 1 | -0/+1 |
| | |||||
* | Add ID_OF to the protocol, and schemas are arbitrary mappings. | Julian Berman | 2022-08-21 | 1 | -6/+10 |
| | | | | They aren't necessarily dicts. | ||||
* | Tell mypy to show codes, which are needed to ignore. | Julian Berman | 2022-08-21 | 1 | -0/+1 |
| | |||||
* | Fix unevaluatedItems on draft2019. | Julian Berman | 2022-08-20 | 4 | -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 Berman | 2022-08-20 | 2 | -2/+4 |
| | |||||
* | Deprecate FormatChecker.cls_checks. | Julian Berman | 2022-08-20 | 4 | -3/+42 |
| | | | | | | It exposes fragile global state. Closes: #519. | ||||
* | More tweaking of type-hinted Sphinx docstrings for TypeCheckers. | Julian Berman | 2022-08-20 | 1 | -32/+19 |
| | |||||
* | Type pmap using pyrsistent's typing. | Julian Berman | 2022-08-20 | 1 | -15/+9 |
| | | | | Dealing with mypy is <insert 4 letter word here>. | ||||
* | Standardize the format of Raises: in napolean docstrings. | Julian Berman | 2022-08-20 | 4 | -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 Berman | 2022-08-20 | 1 | -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 Berman | 2022-08-20 | 1 | -1/+0 |
| | | | | | This page shows totally blank, and rst search barely works anyhow. | ||||
* | Document the install extras in the README/docs. | Julian Berman | 2022-08-20 | 1 | -0/+14 |
| | |||||
* | Fix mypy types for protocols.Validator | Julian Berman | 2022-08-20 | 1 | -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 Berman | 2022-08-20 | 1 | -1/+1 |
| | |||||
* | Try enabling readthedocs/actions/preview for PR previews. | Julian Berman | 2022-08-19 | 1 | -0/+16 |
| | |||||
* | Follow pypa/gh-action-pypi-publish#83. | Julian Berman | 2022-08-19 | 1 | -1/+1 |
| | |||||
* | Support validator classes whose metaschema uses a different dialect.v4.13.0 | Julian Berman | 2022-08-19 | 3 | -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 Berman | 2022-08-18 | 11 | -19/+19 |
| | |||||
* | Update the CHANGELOG.v4.12.1 | Julian Berman | 2022-08-18 | 1 | -0/+15 |
| | |||||
* | Merge pull request #987 from hynek/fix-markers | Julian Berman | 2022-08-18 | 2 | -4/+4 |
|\ | | | | | Use rST markers in README | ||||
| * | Use rST markers in README | Hynek Schlawack | 2022-08-18 | 2 | -4/+4 |
|/ | |||||
* | Warn at runtime when subclassing validator classes.v4.12.0 | Julian Berman | 2022-08-18 | 3 | -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.0 | Julian Berman | 2022-08-18 | 1 | -3/+8 |
| | |||||
* | Merge pull request #983 from hynek/fancy-sparkles | Julian Berman | 2022-08-18 | 3 | -50/+77 |
|\ | | | | | jsonschema deserves a ✨fancy✨ readme | ||||
| * | Cut the middle part | Hynek Schlawack | 2022-08-18 | 2 | -0/+9 |
| | | |||||
| * | Change version header markers | Hynek Schlawack | 2022-08-18 | 2 | -49/+48 |
| | | |||||
| * | jsonschema deserves a ✨fancy✨ readme | Hynek Schlawack | 2022-08-17 | 1 | -3/+22 |
| | | |||||
* | | Use an explicit default provided to validator_for in all cases.v4.10.3 | Julian Berman | 2022-08-18 | 3 | -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.2 | Julian Berman | 2022-08-17 | 3 | -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.1 | Julian Berman | 2022-08-17 | 3 | -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 Berman | 2022-08-17 | 1 | -1/+5 |
|\ | | | | | | | | | * commit 'af8abbb870562f38fa8f760f0462645277dc0e89': Squashed 'json/' changes from 14d05dcea..4cfead7ba | ||||
| * | Squashed 'json/' changes from 14d05dcea..4cfead7ba | Julian Berman | 2022-08-17 | 1 | -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 Berman | 2022-08-17 | 1 | -1/+3 |
| | | |||||
* | | Better error message for network access in test runs. | Julian Berman | 2022-08-17 | 1 | -2/+2 |
| | |