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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7991fd779f7b3f79fa474601bb2e896fd7e68d6564a1d99bcef65e15c2aede23
4
- data.tar.gz: 93d3052bf83414055a7b45e87f4be14f93ab2b908ec8e5ffad397dd8d8dd4a5d
3
+ metadata.gz: d6167fe592d67760e2cbf0e65ce166b019e901c25d6438dd39f9b473d9248179
4
+ data.tar.gz: 5328baa6255254689d6a3e994f86e0aeca7c054fbe536068b1ac75e01b1b7e25
5
5
  SHA512:
6
- metadata.gz: e5c53b7ee85c71f5001b64be6d97272a3530ddc724007a818dcfbf5a2a9fe01272ba18f7f9b427a62b1218122756ff573a7f0d0ddffc3313b147840c0916a381
7
- data.tar.gz: 42b8fccd2e131105bb22ca79ddcf3fa6f4f65ebee3c944c047a5ea695b83366431bc3cbb8f2bf59e1720f011847c9a98873597074b8dad9e4ed47e24d93af19e
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.1...HEAD
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.1"
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.1", default-features = false, features = ["magnus", "arbitrary-precision", "resolve-http", "resolve-file", "tls-ring", "macros", "idna"] }
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
- - **95-1,241x** faster than `json_schemer` for complex schemas and large instances
730
- - **960-1,033x** faster than `json-schema` where supported
731
- - **24-179x** faster than `rj_schema` (RapidJSON/C++)
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 3.5x faster than with a validator built at run time. See the
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.
@@ -220,9 +220,9 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
220
220
 
221
221
  [[package]]
222
222
  name = "fancy-regex"
223
- version = "0.20.1"
223
+ version = "0.20.2"
224
224
  source = "registry+https://github.com/rust-lang/crates.io-index"
225
- checksum = "7b32c6266c2b14b0db7aa3409d3ee3f0ddda3b1d0279c4ba24fbec18af81d90e"
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.1"
696
+ version = "0.61.2"
697
697
  source = "registry+https://github.com/rust-lang/crates.io-index"
698
- checksum = "e404978f72e1a21b53c96114b8a56e4cee7f17bd0a09b9c130875ed02a696f43"
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.1"
730
+ version = "0.61.2"
731
731
  source = "registry+https://github.com/rust-lang/crates.io-index"
732
- checksum = "c6818bc23837bfa2d6caf3a39358b37f5abc4add05084b7bfc30c2c10d1cfaa1"
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.1"
740
+ version = "0.61.2"
741
741
  source = "registry+https://github.com/rust-lang/crates.io-index"
742
- checksum = "f0db6f7ef5249b9cc81f6dc20050e01bd352be935e72d9aabda9e63977445947"
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.1"
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.1"
773
+ version = "0.61.2"
774
774
  source = "registry+https://github.com/rust-lang/crates.io-index"
775
- checksum = "84cdf272371326ec8db8ce2608a52635d8edeeaf0189604e2ad627327b79e6db"
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.1"
782
+ version = "0.61.2"
783
783
  source = "registry+https://github.com/rust-lang/crates.io-index"
784
- checksum = "e5e4a7f3b3c19c9cd2aa37937e1704229a0bcb1b446308a148574d56ace0c6ba"
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.1"
1140
+ version = "0.61.2"
1141
1141
  source = "registry+https://github.com/rust-lang/crates.io-index"
1142
- checksum = "eba9bfd41f0d7d8fbf9c7ed23b788a3f97e9f5d9419be812ff7e08b8dc6b14ec"
1142
+ checksum = "a028057ef852c58a42d75e09da87b5e733f4030f4c7411728955e4f87203a577"
1143
1143
  dependencies = [
1144
1144
  "ahash",
1145
1145
  "fluent-uri",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "jsonschema-rb-ext"
3
- version = "0.61.1"
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.1", default-features = false, features = ["magnus", "arbitrary-precision", "resolve-http", "resolve-file", "tls-ring", "macros", "idna"] }
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.1"
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSONSchema
4
- VERSION = "0.61.1"
4
+ VERSION = "0.61.2"
5
5
  end
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.1
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.1/crates/jsonschema-rb/README.md
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'