summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [pre-commit.ci] pre-commit autoupdatepre-commit-ci-update-configpre-commit-ci[bot]2021-12-271-1/+1
| | | | | updates: - [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0)
* Add v4.3.2 to the changelog.Julian Berman2021-12-201-0/+5
|
* Privated.v4.3.2Julian Berman2021-12-191-3/+3
|
* Merge remote-tracking branch 'Stranger6667/dd/more-ref-cache'Julian Berman2021-12-191-16/+39
|\ | | | | | | | | * Stranger6667/dd/more-ref-cache: perf: Cache subschemas
| * perf: Cache subschemasDmitry Dygalo2021-12-181-16/+39
|/
* v4.3.1 -> CHANGELOGv4.3.1Julian Berman2021-12-161-1/+5
|
* Merge remote-tracking branch 'Stranger6667/dd/cache-ref-resolving'Julian Berman2021-12-162-12/+35
|\ | | | | | | | | | | | | | | * Stranger6667/dd/cache-ref-resolving: docs: Update changelog perf: Replace the `Validator.evolve` method with an equivalent class attribute perf: Use cached lookups for resolving fragments if the referent document is known perf: Cache reference lookups for subschemas
| * docs: Update changelogDmitry Dygalo2021-12-161-3/+1
| |
| * perf: Replace the `Validator.evolve` method with an equivalent class attributeDmitry Dygalo2021-12-162-3/+2
| |
| * perf: Use cached lookups for resolving fragments if the referent document is ↵Dmitry Dygalo2021-12-162-3/+18
| | | | | | | | known
| * perf: Cache reference lookups for subschemasDmitry Dygalo2021-12-152-7/+18
|/
* Shorten the protocol test.v4.3.0Julian Berman2021-12-151-15/+3
|
* Remove relative importsJulian Berman2021-12-154-6/+7
|
* Schemas can be bools too in newer drafts.Julian Berman2021-12-151-4/+4
|
* Remove a last use of 'interface' instead of 'protocol'.Julian Berman2021-12-151-1/+1
|
* Minor CHANGELOG twiddling in prep for v4.3.0.Julian Berman2021-12-151-1/+5
|
* Merge pull request #890 from sirosen/add-validator-protocolJulian Berman2021-12-1512-157/+209
|\ | | | | Add `jsonschema.protocols.IValidator`
| * Fix doc linting buildStephen Rosen2021-12-132-3/+4
| | | | | | | | | | This fixes `tox -e docs-style` `tox -e docs-linkcheck` is still failing (needs investigation)
| * Fix references to IValidator; add protocol testsStephen Rosen2021-12-137-10/+32
| | | | | | | | | | | | | | | | Several remaining cases referred to `IValidator` which is now just `Validtator`. Fix these. Add a test which ensures that all valdiators pass `isinstance(x, Validator)` using the runtime-checkable protocol.
| * Apply suggestions from code reviewStephen Rosen2021-12-136-14/+15
| | | | | | | | | | | | Primarily, rewrite `IValidator` to `Validator` Co-authored-by: Julian Berman <Julian@GrayVines.com>
| * Update docs/validate.rstStephen Rosen2021-12-131-1/+1
| | | | | | Co-authored-by: Julian Berman <Julian@GrayVines.com>
| * Add `jsonschema.protocols.IValidator`Stephen Rosen2021-12-137-145/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a Protocol implementation for type checking under mypy and other static analyzers. It uses the protocol class defined in py3.8+ and uses typing_extensions as a backport for py3.7 The documentation-only validator class has been replaced with the protocol, and docs are now driven via autoclass on the protocol. Importantly, several documented methods of the class have been removed, as they were marked deprecated under jsonschema v3.0 and are no longer provided by the builtin validators. Minor adjustments to the docs are made to repoint references at the new class definition.
* | Merge pull request #893 from Stranger6667/dd/uniq-bugJulian Berman2021-12-152-1/+4
|\ \ | | | | | | perf: Undesired fallback to brute force container uniqueness check on certain input types
| * | perf: Undesired fallback to brute force container uniqueness check on ↵Dmitry Dygalo2021-12-152-1/+4
|/ / | | | | | | certain input types
* | Update the doc requirements.Julian Berman2021-12-131-1/+1
| | | | | | | | | | | | Done to avoid the lxml advisory. https://github.com/advisories/GHSA-55x5-fj6c-h6m8
* | Update requirements.Julian Berman2021-12-111-19/+21
|/
* Merge pull request #883 from Julian/pre-commit-ci-update-configJulian Berman2021-11-151-1/+1
|\ | | | | [pre-commit.ci] pre-commit autoupdate
| * [pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]2021-11-151-1/+1
|/ | | | | updates: - [github.com/PyCQA/isort: 5.10.0 → 5.10.1](https://github.com/PyCQA/isort/compare/5.10.0...5.10.1)
* Merge pull request #882 from Julian/pre-commit-ci-update-configJulian Berman2021-11-101-1/+1
|\ | | | | [pre-commit.ci] pre-commit autoupdate
| * [pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]2021-11-081-1/+1
|/ | | | | updates: - [github.com/PyCQA/isort: 5.9.3 → 5.10.0](https://github.com/PyCQA/isort/compare/5.9.3...5.10.0)
* v4.2.1 -> CHANGELOGv4.2.1Julian Berman2021-11-051-0/+5
|
* Merge pull request #877 from sevein/dev/issue-876-importlib-resources-constraintJulian Berman2021-11-051-1/+1
|\ | | | | Add version constraint to importlib_resources
| * Add version constraint to importlib_resourcesJesús García Crespo2021-11-051-1/+1
|/
* v4.2.0 -> CHANGELOGv4.2.0Julian Berman2021-11-031-0/+7
|
* Add in some missing internal draft2019-09 tests.Julian Berman2021-11-031-0/+6
|
* Merge pull request #875 from DrGFreeman/866-unique-items-more-than-twoJulian Berman2021-11-032-61/+2
|\ | | | | Ensure all elements of arrays are verified for uniqueness
| * Ensure all items of array are checked for uniquenessDrGFreeman2021-11-031-1/+2
| | | | | | | | | | Fix bug where the function would return (True) early if the first two items of the array are unique, preventing verification of other array items.
| * Revert "Temporarily skip the failing tests from #866."DrGFreeman2021-11-031-60/+0
|/ | | | This reverts commit ed4693ca07c912f7640997f67401d31076959081.
* Temporarily skip the failing tests from #866.Julian Berman2021-11-031-0/+60
|
* Merge commit 'c9b74362198d21cea59794c414f0877452ab9fa7'Julian Berman2021-11-037-0/+140
|\ | | | | | | | | * commit 'c9b74362198d21cea59794c414f0877452ab9fa7': Squashed 'json/' changes from 329efe59c..9263b5250
| * Squashed 'json/' changes from 329efe59c..9263b5250Julian Berman2021-11-037-0/+140
| | | | | | | | | | | | | | | | | | 9263b5250 Merge pull request #525 from DrGFreeman/524-uniqueItems-tests 2c5368886 Add tests instead of modifying existing tests de84a59c5 Add and modify uniqueItems tests git-subtree-dir: json git-subtree-split: 9263b52500a6688ba02181ef2299ec4a894b589e
* | Add some other links which will show up on PyPI.Julian Berman2021-11-031-1/+3
| |
* | Merge pull request #873 from sevein/dev/issue-871-importlib-resourcesJulian Berman2021-11-032-3/+11
|\ \ | | | | | | Load schemas via importlib.resources
| * | Load schemas via importlib.resourcesJesús García Crespo2021-11-032-3/+11
|/ /
* | Remove uses of SynchronousTestCase.Julian Berman2021-10-311-29/+24
| | | | | | | | | | | | The warnings module still leaves what to be desired vis a vis cleaning up state, but everything at least passes this way now, and this removes a testing dependency.
* | Set PYTHONWARNINGS only for the test run itself.Julian Berman2021-10-311-2/+1
| | | | | | | | | | Other things (the install :/) are just too noisy themselves, and raise errors.
* | Merge pull request #869 from sir-sigurd/patch-1Julian Berman2021-10-301-2/+2
|\ \ | | | | | | Add release note about dropping support for Py 3.6
| * | [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2021-10-291-1/+1
| | | | | | | | | | | | for more information, see https://pre-commit.ci
| * | Add release note about dropping support for Py 3.6Sergey Fedoseev2021-10-291-2/+2
|/ / | | | | It was dropped in https://github.com/Julian/jsonschema/commit/3fb0576411701b57899cf9c812e32046ddc2adf9
* | in-tree-build is now the default in pipJulian Berman2021-10-241-4/+3
| |