jsonschema_rs 0.61.1 → 0.61.2
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 +21 -1
- data/Cargo.toml +2 -2
- data/README.md +4 -4
- data/ext/jsonschema/Cargo.lock +15 -15
- data/ext/jsonschema/Cargo.toml +3 -3
- data/lib/jsonschema/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6167fe592d67760e2cbf0e65ce166b019e901c25d6438dd39f9b473d9248179
|
|
4
|
+
data.tar.gz: 5328baa6255254689d6a3e994f86e0aeca7c054fbe536068b1ac75e01b1b7e25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba73f7863f1a404234c5aa2f0156f249d27c5dbbac1e205f899162d98cb54f211c3d5625ea64de4434616bb6efccd57e73e03e10415df8a028f7001931a47b57
|
|
7
|
+
data.tar.gz: ae1e20516dc325b2866f9ff8ad8e628c3eadea7082bf2d97b39d24cf0b6d4f138ee2d26a9939485d494143ca71f9e9847b68ba897da79addbb1a605d43436441
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.61.2] - 2026-11-12
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- References inside a registered resource resolving against the URI it was registered under instead of its `$id`. [#1862](https://github.com/Stranger6667/jsonschema/issues/1862)
|
|
10
|
+
|
|
11
|
+
### Performance
|
|
12
|
+
|
|
13
|
+
- Validation of deeply nested instances against recursive schemas takes time linear in their nesting depth.
|
|
14
|
+
- `unevaluatedProperties` next to `if`, `dependentSchemas`, `anyOf` or `oneOf` checked in one pass over the object by `is_valid`, without validating those subschemas again.
|
|
15
|
+
- `allOf` branches that only check `properties`, `required` or `type: object` checked in one pass over the object by `is_valid`.
|
|
16
|
+
- `required` beside `properties` and `additionalProperties: false` checked in the same pass over the object by `is_valid`.
|
|
17
|
+
- `$ref`s to a subschema another `$ref` already compiled dispatched once instead of twice.
|
|
18
|
+
- `unevaluatedProperties` matching property names by their first and last bytes instead of hashing them.
|
|
19
|
+
- `additionalProperties` that only checks `type` decided without entering the subschema for each value by `is_valid`.
|
|
20
|
+
- Literal-prefix patterns rejecting a property name on its first byte before comparing the rest.
|
|
21
|
+
- Integer `const` and `enum` values compared directly instead of through their decimal forms.
|
|
22
|
+
- `propertyNames` validating each `String` key itself instead of a new string built from its text.
|
|
23
|
+
|
|
5
24
|
## [0.61.1] - 2026-11-10
|
|
6
25
|
|
|
7
26
|
### Fixed
|
|
@@ -747,7 +766,8 @@
|
|
|
747
766
|
|
|
748
767
|
- Initial public release
|
|
749
768
|
|
|
750
|
-
[Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.61.
|
|
769
|
+
[Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.61.2...HEAD
|
|
770
|
+
[0.61.2]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.61.1...ruby-v0.61.2
|
|
751
771
|
[0.61.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.61.0...ruby-v0.61.1
|
|
752
772
|
[0.61.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.60.2...ruby-v0.61.0
|
|
753
773
|
[0.60.2]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.60.1...ruby-v0.60.2
|
data/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "jsonschema-rb"
|
|
3
|
-
version = "0.61.
|
|
3
|
+
version = "0.61.2"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
authors = ["Dmitry Dygalo <dmitry@dygalo.dev>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -14,7 +14,7 @@ crate-type = ["cdylib"]
|
|
|
14
14
|
|
|
15
15
|
[dependencies]
|
|
16
16
|
strum = "0.28.0"
|
|
17
|
-
jsonschema = { version = "0.61.
|
|
17
|
+
jsonschema = { version = "0.61.2", default-features = false, features = ["magnus", "arbitrary-precision", "resolve-http", "resolve-file", "tls-ring", "macros", "idna"] }
|
|
18
18
|
magnus = { version = "0.9", features = ["rb-sys"] }
|
|
19
19
|
rb-sys = "0.9"
|
|
20
20
|
serde = { workspace = true }
|
data/README.md
CHANGED
|
@@ -726,9 +726,9 @@ Valid draft symbols: `:draft4`, `:draft6`, `:draft7`, `:draft201909`, `:draft202
|
|
|
726
726
|
|
|
727
727
|
Compared with other Ruby validators:
|
|
728
728
|
|
|
729
|
-
- **
|
|
730
|
-
- **
|
|
731
|
-
- **
|
|
729
|
+
- **96-1,189x** faster than `json_schemer` for complex schemas and large instances
|
|
730
|
+
- **987-1,081x** faster than `json-schema` where supported
|
|
731
|
+
- **25-161x** faster than `rj_schema` (RapidJSON/C++)
|
|
732
732
|
|
|
733
733
|
Full results and methodology are in [BENCHMARKS.md](https://github.com/Stranger6667/jsonschema/blob/master/crates/jsonschema-rb/BENCHMARKS.md).
|
|
734
734
|
|
|
@@ -737,7 +737,7 @@ Full results and methodology are in [BENCHMARKS.md](https://github.com/Stranger6
|
|
|
737
737
|
If you ship your own extension and know the schema at build time, the Rust crate's
|
|
738
738
|
`#[jsonschema::validator(..., backend = Magnus)]` macro compiles it into a validator that reads
|
|
739
739
|
Ruby objects directly, so nothing is parsed or compiled when your extension is loaded, and
|
|
740
|
-
validation runs up to
|
|
740
|
+
validation runs up to 2.6x faster than with a validator built at run time. See the
|
|
741
741
|
[macro documentation](https://docs.rs/jsonschema/latest/jsonschema/#ruby-extension-modules).
|
|
742
742
|
|
|
743
743
|
This is not available from the `jsonschema_rs` gem, which takes its schemas at run time.
|
data/ext/jsonschema/Cargo.lock
CHANGED
|
@@ -220,9 +220,9 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|
|
220
220
|
|
|
221
221
|
[[package]]
|
|
222
222
|
name = "fancy-regex"
|
|
223
|
-
version = "0.20.
|
|
223
|
+
version = "0.20.2"
|
|
224
224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
-
checksum = "
|
|
225
|
+
checksum = "0a2e16b9a584b602f1e0e5e22c30ca0906786088c27500653e432d086def8b53"
|
|
226
226
|
dependencies = [
|
|
227
227
|
"bit-set",
|
|
228
228
|
"regex-automata",
|
|
@@ -693,9 +693,9 @@ dependencies = [
|
|
|
693
693
|
|
|
694
694
|
[[package]]
|
|
695
695
|
name = "jsonschema"
|
|
696
|
-
version = "0.61.
|
|
696
|
+
version = "0.61.2"
|
|
697
697
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
698
|
-
checksum = "
|
|
698
|
+
checksum = "0e37f27df77c7887edbc5f5a59ecd8e5ec4a669319266ec1b61068667a603183"
|
|
699
699
|
dependencies = [
|
|
700
700
|
"ahash",
|
|
701
701
|
"bytecount",
|
|
@@ -727,9 +727,9 @@ dependencies = [
|
|
|
727
727
|
|
|
728
728
|
[[package]]
|
|
729
729
|
name = "jsonschema-macros"
|
|
730
|
-
version = "0.61.
|
|
730
|
+
version = "0.61.2"
|
|
731
731
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
732
|
-
checksum = "
|
|
732
|
+
checksum = "e3467cc02f0e5de53d77834726a4744c61bdd239336ae49902ff0cbf1842d930"
|
|
733
733
|
dependencies = [
|
|
734
734
|
"jsonschema-macros-core",
|
|
735
735
|
"proc-macro2",
|
|
@@ -737,9 +737,9 @@ dependencies = [
|
|
|
737
737
|
|
|
738
738
|
[[package]]
|
|
739
739
|
name = "jsonschema-macros-core"
|
|
740
|
-
version = "0.61.
|
|
740
|
+
version = "0.61.2"
|
|
741
741
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
742
|
-
checksum = "
|
|
742
|
+
checksum = "75afa4b5e6986cc221f5339d7d6149360f0bf8e65bcb23617dc0f92900b576d2"
|
|
743
743
|
dependencies = [
|
|
744
744
|
"fancy-regex",
|
|
745
745
|
"indexmap",
|
|
@@ -756,7 +756,7 @@ dependencies = [
|
|
|
756
756
|
|
|
757
757
|
[[package]]
|
|
758
758
|
name = "jsonschema-rb-ext"
|
|
759
|
-
version = "0.61.
|
|
759
|
+
version = "0.61.2"
|
|
760
760
|
dependencies = [
|
|
761
761
|
"jsonschema",
|
|
762
762
|
"magnus",
|
|
@@ -770,18 +770,18 @@ dependencies = [
|
|
|
770
770
|
|
|
771
771
|
[[package]]
|
|
772
772
|
name = "jsonschema-regex"
|
|
773
|
-
version = "0.61.
|
|
773
|
+
version = "0.61.2"
|
|
774
774
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
775
|
-
checksum = "
|
|
775
|
+
checksum = "7e41151614b6c927e21982be8bef5a26741ae5a0ae6a781eedee2aa930a980e6"
|
|
776
776
|
dependencies = [
|
|
777
777
|
"regex-syntax",
|
|
778
778
|
]
|
|
779
779
|
|
|
780
780
|
[[package]]
|
|
781
781
|
name = "jsonschema-value"
|
|
782
|
-
version = "0.61.
|
|
782
|
+
version = "0.61.2"
|
|
783
783
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
784
|
-
checksum = "
|
|
784
|
+
checksum = "1515b9a91134ef67d7bac95c2d76fbc7e383c4c55ee544204ceec8088f881fef"
|
|
785
785
|
dependencies = [
|
|
786
786
|
"ahash",
|
|
787
787
|
"bytecount",
|
|
@@ -1137,9 +1137,9 @@ dependencies = [
|
|
|
1137
1137
|
|
|
1138
1138
|
[[package]]
|
|
1139
1139
|
name = "referencing"
|
|
1140
|
-
version = "0.61.
|
|
1140
|
+
version = "0.61.2"
|
|
1141
1141
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1142
|
-
checksum = "
|
|
1142
|
+
checksum = "a028057ef852c58a42d75e09da87b5e733f4030f4c7411728955e4f87203a577"
|
|
1143
1143
|
dependencies = [
|
|
1144
1144
|
"ahash",
|
|
1145
1145
|
"fluent-uri",
|
data/ext/jsonschema/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "jsonschema-rb-ext"
|
|
3
|
-
version = "0.61.
|
|
3
|
+
version = "0.61.2"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
publish = false
|
|
6
6
|
|
|
@@ -10,10 +10,10 @@ name = "jsonschema_rb"
|
|
|
10
10
|
path = "../../src/lib.rs"
|
|
11
11
|
|
|
12
12
|
[dependencies]
|
|
13
|
-
jsonschema = { version = "0.61.
|
|
13
|
+
jsonschema = { version = "0.61.2", default-features = false, features = ["magnus", "arbitrary-precision", "resolve-http", "resolve-file", "tls-ring", "macros", "idna"] }
|
|
14
14
|
magnus = { version = "0.9", features = ["rb-sys"] }
|
|
15
15
|
rb-sys = "0.9"
|
|
16
|
-
referencing = "0.61.
|
|
16
|
+
referencing = "0.61.2"
|
|
17
17
|
serde = { version = "1", features = ["derive"] }
|
|
18
18
|
serde_json = { version = "1", features = ["arbitrary_precision"] }
|
|
19
19
|
strum = "0.28.0"
|
data/lib/jsonschema/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jsonschema_rs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.61.
|
|
4
|
+
version: 0.61.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Dygalo
|
|
@@ -80,7 +80,7 @@ metadata:
|
|
|
80
80
|
homepage_uri: https://github.com/Stranger6667/jsonschema/tree/master/crates/jsonschema-rb
|
|
81
81
|
source_code_uri: https://github.com/Stranger6667/jsonschema
|
|
82
82
|
changelog_uri: https://github.com/Stranger6667/jsonschema/blob/master/crates/jsonschema-rb/CHANGELOG.md
|
|
83
|
-
documentation_uri: https://github.com/Stranger6667/jsonschema/blob/ruby-v0.61.
|
|
83
|
+
documentation_uri: https://github.com/Stranger6667/jsonschema/blob/ruby-v0.61.2/crates/jsonschema-rb/README.md
|
|
84
84
|
bug_tracker_uri: https://github.com/Stranger6667/jsonschema/issues
|
|
85
85
|
funding_uri: https://github.com/sponsors/Stranger6667
|
|
86
86
|
rubygems_mfa_required: 'true'
|