jsonschema_rs 0.45.1 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1
- data/Cargo.toml +2 -2
- data/ext/jsonschema/Cargo.lock +141 -195
- data/ext/jsonschema/Cargo.toml +3 -3
- data/lib/jsonschema/version.rb +1 -1
- data/sig/jsonschema.rbs +50 -0
- data/src/lib.rs +138 -13
- data/src/options.rs +7 -4
- data/src/registry.rs +184 -25
- data/src/validator_map.rs +92 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f8a801713b8f12c2c34a1a9925ab2ac51b31ebb8f74a0394481aa7f59b2ca87
|
|
4
|
+
data.tar.gz: 94cfc9e90477c3eb3178bf4b37ca7b16b931b7954afff8c54376752e40d43a20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 144c6e273ce1c59dd1f6d855d158da47f73f7fa5cf9b3238bdafbd252635d5f0923de3fb63c860dee9e6e2f8efcb734daa68ddd1ca330c3841f2c46dbf75b68d
|
|
7
|
+
data.tar.gz: 998204d7ad6e3b6c0f4551ba7062718125bc2be0b2aaf556d11521d5315a1e612f89dfe287ed497910375a99af1e0474c73d7aaa1c4b989709f9112a3d3f49b7
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.46.0] - 2026-04-10
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Accept JSON strings in `validator_cls_for`.
|
|
10
|
+
- `Resolver` and `Resolved` types for programmatic schema resolution.
|
|
11
|
+
- `dereference` function to recursively inline `$ref` references. [#422](https://github.com/Stranger6667/jsonschema/issues/422)
|
|
12
|
+
- `ValidatorMap` for validating instances against subschemas identified by URI-fragment JSON pointer. [#1075](https://github.com/Stranger6667/jsonschema/pull/1075)
|
|
13
|
+
|
|
14
|
+
### Performance
|
|
15
|
+
|
|
16
|
+
- Avoid registry clones and document clones during validator construction. This improves real-world schema compilation by roughly 10-20% in internal benchmarks.
|
|
17
|
+
|
|
5
18
|
## [0.45.1] - 2026-04-06
|
|
6
19
|
|
|
7
20
|
### Fixed
|
|
@@ -73,7 +86,8 @@
|
|
|
73
86
|
|
|
74
87
|
- Initial public release
|
|
75
88
|
|
|
76
|
-
[Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.
|
|
89
|
+
[Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.46.0...HEAD
|
|
90
|
+
[0.46.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.45.1...ruby-v0.46.0
|
|
77
91
|
[0.45.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.45.0...ruby-v0.45.1
|
|
78
92
|
[0.45.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.44.1...ruby-v0.45.0
|
|
79
93
|
[0.44.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.44.0...ruby-v0.44.1
|
data/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "jsonschema-rb"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.46.0"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
authors = ["Dmitry Dygalo <dmitry@dygalo.dev>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -13,7 +13,7 @@ publish = false
|
|
|
13
13
|
crate-type = ["cdylib"]
|
|
14
14
|
|
|
15
15
|
[dependencies]
|
|
16
|
-
jsonschema = { version = "0.
|
|
16
|
+
jsonschema = { version = "0.46.0", default-features = false, features = ["arbitrary-precision", "resolve-http", "resolve-file", "tls-ring"] }
|
|
17
17
|
magnus = { version = "0.8", features = ["rb-sys"] }
|
|
18
18
|
rb-sys = "0.9"
|
|
19
19
|
serde = { workspace = true }
|