jsonschema_rs 0.61.0-x86_64-linux → 0.61.2-x86_64-linux
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 +34 -1
- data/README.md +4 -4
- data/lib/jsonschema/3.3/jsonschema_rb.so +0 -0
- data/lib/jsonschema/3.4/jsonschema_rb.so +0 -0
- data/lib/jsonschema/4.0/jsonschema_rb.so +0 -0
- data/lib/jsonschema/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97dec6753752eb373769905148953d585bfe53e6cfd586f946202f46c9287090
|
|
4
|
+
data.tar.gz: 7c806eb8de25acaa971cb24c7f5c17112830ec834d8518aee3c87f781b675d89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b0420fbb51d6fc742602fa390c515a64cdfab8e985f15b7134e7a8d40adecfa3f8a24d96f0ddf007d55ba581978d36dc9b66dc67044dfac668e4788c1526958
|
|
7
|
+
data.tar.gz: e169e66e869cf545b7e31fa09b8d334cd7a3bda5c1286523b4ac85ef7c8cfa724cfac491d79848211bcc9f8d1f104536c96f5e3320a1b7e6a803b31dcae75170
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,37 @@
|
|
|
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
|
+
|
|
24
|
+
## [0.61.1] - 2026-11-10
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- `dereference` following `$ref` in keywords that hold data, such as `const` and `examples`. [#1858](https://github.com/Stranger6667/jsonschema/issues/1858)
|
|
29
|
+
- `pattern` over one character class under a large bounded count, such as `^.{0,404600}$`, failing with a regex engine error on the empty string when the size limit was raised to compile it.
|
|
30
|
+
|
|
31
|
+
### Performance
|
|
32
|
+
|
|
33
|
+
- `pattern` and `patternProperties` with a large bounded count over one character class, such as `^.{0,262144}$` or `[^\p{C}]{1,2048}`, build without unrolling the count and fit the default size limit.
|
|
34
|
+
- `pattern` and `patternProperties` match anchored character-class patterns such as `^[a-z0-9-]+$` without a regex engine.
|
|
35
|
+
|
|
5
36
|
## [0.61.0] - 2026-11-08
|
|
6
37
|
|
|
7
38
|
### Fixed
|
|
@@ -735,7 +766,9 @@
|
|
|
735
766
|
|
|
736
767
|
- Initial public release
|
|
737
768
|
|
|
738
|
-
[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
|
|
771
|
+
[0.61.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.61.0...ruby-v0.61.1
|
|
739
772
|
[0.61.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.60.2...ruby-v0.61.0
|
|
740
773
|
[0.60.2]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.60.1...ruby-v0.60.2
|
|
741
774
|
[0.60.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.60.0...ruby-v0.60.1
|
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.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/jsonschema/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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: x86_64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Dygalo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bigdecimal
|
|
@@ -56,7 +56,7 @@ metadata:
|
|
|
56
56
|
homepage_uri: https://github.com/Stranger6667/jsonschema/tree/master/crates/jsonschema-rb
|
|
57
57
|
source_code_uri: https://github.com/Stranger6667/jsonschema
|
|
58
58
|
changelog_uri: https://github.com/Stranger6667/jsonschema/blob/master/crates/jsonschema-rb/CHANGELOG.md
|
|
59
|
-
documentation_uri: https://github.com/Stranger6667/jsonschema/blob/ruby-v0.61.
|
|
59
|
+
documentation_uri: https://github.com/Stranger6667/jsonschema/blob/ruby-v0.61.2/crates/jsonschema-rb/README.md
|
|
60
60
|
bug_tracker_uri: https://github.com/Stranger6667/jsonschema/issues
|
|
61
61
|
funding_uri: https://github.com/sponsors/Stranger6667
|
|
62
62
|
rubygems_mfa_required: 'true'
|