Joel Natividad
6cf82328e3
chore: bump reqwest from 0.11 to 0.12
2024-04-14 21:01:58 +02:00
Dmitry Dygalo
9aae87e573
build: Update builds
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-04-14 18:24:03 +02:00
Dmitry Dygalo
79e35a2012
chore(python): Release 0.17.3
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-22 19:02:25 +01:00
Dmitry Dygalo
b31e4ffb18
chore: fix import order
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-22 19:00:09 +01:00
Florian Braun
829ca19963
feat(python): support validation of dict subclasses
...
Currently, attemping to validate an instance of a dict subclass will raise a `ValueError`. This should not be happening, since the instance is still dict.
Achieve compatibility by checking the subclasses' inheritance tree, and treat the instance like a dict if that check passes.
2024-03-22 18:44:42 +01:00
Dmitry Dygalo
9771bc227c
chore: Clarify error on missing test suite
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 21:26:10 +01:00
Dmitry Dygalo
8eacf2d9da
chore(python): Release 0.17.2
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 20:32:38 +01:00
Dmitry Dygalo
8193c2cb91
chore(python): Update classifiers
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 19:50:49 +01:00
Dmitry Dygalo
4f99c8f8be
feat: Support Python 3.12
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 19:48:40 +01:00
Dmitry Dygalo
f0828cba01
fix: Missing features from the main crate
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 01:43:16 +01:00
Stephan Lanfermann
6ae63dc564
feat: Expose drafts 2019-09 and 2020-12 to Python ( #457 )
...
Co-authored-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 01:24:07 +01:00
Dmitry Dygalo
e15d4dd342
chore: Update dependencies
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 01:18:27 +01:00
Karl Gutwin
584a07a410
ci: build aarch64 Python wheels
2024-03-03 01:15:12 +01:00
Dmitry Dygalo
e2e06895e4
chore: Update more dependencies
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 01:03:09 +01:00
dependabot[bot]
cd1ed98e6d
build(deps): bump rustix from 0.38.2 to 0.38.31 in /bench_helpers ( #459 )
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.2 to 0.38.31.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.2...v0.38.31 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-03 00:25:22 +01:00
Joel Natividad
710f7700f0
chore: Bump dependencies
2024-03-03 00:21:12 +01:00
Dmitry Dygalo
c64e87eebd
docs: Update README
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 00:20:09 +01:00
OrangeTux
847fb05251
Correct link
2024-03-03 00:13:02 +01:00
OrangeTux
88c4b7503f
Document how to run tests
...
`cargo tests` depends on an external, undocumented dependency: the JSON
Schema Test Suite.
This commit introduces instructions how to get test suite.
Without the test suite, `cargo test` fails with:
```
$ cargo test
error: custom attribute panicked
--> tests/test_suite.rs:5:1
|
5 | #[json_schema_test_suite("tests/suite", "draft4", {"optional_bignum_0_0", "optional_bignum_2_0"})]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: Tests directory not found: tests/suite/tests/draft4
```
2024-03-03 00:13:02 +01:00
Dmitry Dygalo
558d13db35
test: fix python tests
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 00:11:33 +01:00
Dmitry Dygalo
c7ca4119ba
chore: fix clippy
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-02 23:54:00 +01:00
OrangeTux
52cf5683d6
fix: unresolved import `"syn::ItemFn"` when running tests
...
`cargo test` fails with:
```
$ cargo test master ✭
Compiling json_schema_test_suite_proc_macro v0.3.0 (/home/auke/projects/jsonschema-rs/jsonschema-test-suite/proc_macro)
Compiling jsonschema v0.17.1 (/home/auke/projects/jsonschema-rs/jsonschema)
error[E0432]: unresolved import `syn::ItemFn`
--> /home/auke/projects/jsonschema-rs/jsonschema-test-suite/proc_macro/src/lib.rs:41:37
|
41 | use syn::{parse_macro_input, Ident, ItemFn};
| ^^^^^^ no `ItemFn` in the root
|
note: found an item that was configured out
--> /home/auke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/lib.rs:365:32
|
365 | ItemEnum, ItemExternCrate, ItemFn, ItemForeignMod, ItemImpl, ItemMacro, ItemMacro2, ItemMod,
| ^^^^^^
= note: the item is gated behind the `full` feature
For more information about this error, try `rustc --explain E0432`.
```
This commit fixes the issue by applying the suggestion of the compiler.
2024-03-02 23:02:09 +01:00
John Vandenberg
8dc33ea41a
chore: Fix typos ( #447 )
2024-01-16 08:00:33 +01:00
Dmitry Dygalo
4461d0ff7f
chore(python): Release 0.17.1
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2023-07-05 11:58:49 +02:00
Dmitry Dygalo
8a2fa1f5a6
chore(rust): Release 0.17.1
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2023-07-05 11:43:48 +02:00
Dmitry Dygalo
090b7085b1
docs: Update changelog
...
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2023-07-05 11:37:31 +02:00
Dmitry Dygalo
e12cba1324
chore: update criterion
2023-07-05 11:35:05 +02:00
Dmitry Dygalo
5e3380086c
chore: update pyo3
2023-07-05 11:35:05 +02:00
Dmitry Dygalo
a9f05e69f4
chore: update criterion
2023-07-05 11:35:05 +02:00
dependabot[bot]
63f5851c0c
build(deps): bump h2 from 0.3.15 to 0.3.17 in /bindings/python
...
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.15 to 0.3.17.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.15...v0.3.17 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 10:53:58 +02:00
Toby Lawrence
fde9c4405c
fix: `unevaluatedProperties` doesn't correctly handle subschema validation ( #423 )
...
* fix: unevaluatedProperties doesn't correctly handle subschema validation
* fix clippy lints and feature flag stuff
* trying to optimize slightly
* tweak
* make additionalProperties a first-class subvalidator
2023-07-05 10:53:33 +02:00
Iliia Maleki
066a0da459
feat: improved error messages clarity ( #430 )
...
* feat: improved error messages clarity
* fix: edited test cases to match the new wording
* squash! feat: improved error messages clarity
2023-06-09 09:35:52 +02:00
Dmitry Dygalo
67e0e4e871
docs: Update README
2023-03-22 19:21:00 +01:00
Dmitry Dygalo
4179972bac
chore(rust): Release 0.17.0
2023-03-16 13:09:43 +01:00
Dmitry Dygalo
64f3e02ede
docs: Update code samples in README
2023-03-16 12:42:11 +01:00
Dmitry Dygalo
aae445cd2d
docs: Update changelog
2023-03-16 08:48:15 +01:00
Dmitry Dygalo
1ae6be9eb8
chore: Fix `clippy`
2023-03-16 08:43:49 +01:00
Toby Lawrence
63494600b8
feat: add support for unevaluatedProperties to draft 2019-09 and 2020-12
2023-03-16 08:37:59 +01:00
Dmitry Dygalo
848b7b1284
chore: Update `iso8601` to `0.6`
2023-02-25 17:38:53 +01:00
Dmitry Dygalo
44b7e5457f
chore(python): Release 0.16.3
2023-02-01 01:43:43 +01:00
Dmitry Dygalo
6a1e1d3d23
build: Drop outdated `py36` tox job
2023-02-01 00:31:04 +01:00
Dmitry Dygalo
7619ff715c
docs(python): Add a changelog entry
2023-02-01 00:29:44 +01:00
Dmitry Dygalo
d0bacfb692
build: Do not run `test-python-sdist`
...
As it is tested in the `Release` job
2023-02-01 00:26:57 +01:00
Dmitry Dygalo
164f208a8a
build: Rework Python releasing ( #414 )
2023-02-01 00:21:54 +01:00
Dmitry Dygalo
0c6d9c4229
chore(python): Update `PyO3`
2023-01-31 23:07:04 +01:00
Dmitry Dygalo
0391921362
build(python): Switch to maturin ( #411 )
...
* build(python): Switch to maturin
* chore: Use `maturin>=0.14.11,<0.15`
Co-authored-by: messense <messense@icloud.com>
* build: Build only `sdist` in the `test-python-sdist` job
Co-authored-by: messense <messense@icloud.com>
* build: Set the proper output directory for `maturin`
* chore: Add more metadata
---------
Co-authored-by: messense <messense@icloud.com>
2023-01-31 22:10:06 +01:00
Dmitry Dygalo
77ce10015f
ci: Update Actions
2023-01-31 21:39:05 +01:00
Dmitry Dygalo
42010c60a4
test(python): Add missing `py311` tox env
2023-01-29 13:56:08 +01:00
Dmitry Dygalo
cc5de11669
chore: Fix clippy warnings
2023-01-29 13:56:08 +01:00
Dmitry Dygalo
5553600d66
chore(rust): Replace `lazy_static` with `once_cell`
2023-01-15 11:26:52 +01:00