jsonschema_rs 0.57.0-aarch64-linux → 0.58.1-aarch64-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f04e1a7495bdcb5b920092072e093e7ecaa7b264113d913f3262614979f6a7e
4
- data.tar.gz: 3512ec86abe7a682dd2d5cad03ffa379879a8b5fae754829bcff78700cc02432
3
+ metadata.gz: 5160c7df16207e97382194f5a21f8784d4271d1c0f15ddea9c553703b4db17e4
4
+ data.tar.gz: 4bee0e2db015207ad5168f5f3d0c5dc84bec461696075bdcc5699775d0af533f
5
5
  SHA512:
6
- metadata.gz: ab299ccea5d0cd2a6b25018d445f60b6564606d3746ee096d22a9e7dcb714607060ee64378a29f2df339ef07739648e23e9fe6476ec8fe146eb22494f602c58c
7
- data.tar.gz: 4f1e4fca04679c15e6b38ee52642f8383a1e0e7ab85e56013d0b4297933c21b1b7b04a6bd3893ee422da3fa8769a550a661d8b1985d5dd72c16d460f2107876d
6
+ metadata.gz: b884e4f9ef004136863be2415a43ed3e958425fc4e9b707bb82120ca6a8f7f2dfeb6054335cea925b71421fd84e4b2df94b1b1a9fff8691a8161cf2b406a3b2d
7
+ data.tar.gz: 2e1b843c3f956c15d108637aee450e43488e19227c65f721f8b82d0be0d94f0f3efc7cabc8098b15198aef57c76efd39884e4e1c78cd1c196ae83207a7c93953
data/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.58.1] - 2026-09-26
6
+
7
+ ### Performance
8
+
9
+ - `uri` and `uri-reference` formats check the syntax directly instead of parsing each value into a URI.
10
+
11
+ ## [0.58.0] - 2026-09-25
12
+
13
+ ### Performance
14
+
15
+ - `oneOf` and `anyOf` whose branches each require a property fixed to a distinct string validate only the branch matching the instance's value.
16
+ - `Meta.valid?` and `Meta.validate!` check a schema against the bundled drafts without converting it first, 2 to 5x faster on the benchmarked schemas.
17
+
18
+ ### Fixed
19
+
20
+ - `Canonical.find_unsatisfiable` missing a `oneOf` over `$ref` branches beside a sibling none of them admits.
21
+ - A value with no JSON form nested under `type: null` failing validation silently (it should raise `TypeError`).
22
+
5
23
  ## [0.57.0] - 2026-09-22
6
24
 
7
25
  ### Added
@@ -577,7 +595,9 @@
577
595
 
578
596
  - Initial public release
579
597
 
580
- [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.57.0...HEAD
598
+ [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.58.1...HEAD
599
+ [0.58.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.58.0...ruby-v0.58.1
600
+ [0.58.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.57.0...ruby-v0.58.0
581
601
  [0.57.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.56.0...ruby-v0.57.0
582
602
  [0.56.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.55.1...ruby-v0.56.0
583
603
  [0.55.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.55.0...ruby-v0.55.1
data/README.md CHANGED
@@ -700,6 +700,18 @@ Valid draft symbols: `:draft4`, `:draft6`, `:draft7`, `:draft201909`, `:draft202
700
700
 
701
701
  For detailed benchmarks, see our [full performance comparison](https://github.com/Stranger6667/jsonschema/blob/master/crates/jsonschema-rb/BENCHMARKS.md).
702
702
 
703
+ ### Compile-Time Validators
704
+
705
+ If you ship your own extension and know the schema at build time, the Rust crate's
706
+ `#[jsonschema::validator(..., backend = Magnus)]` macro compiles it into a validator that reads
707
+ Ruby objects directly, so nothing is parsed or compiled when your extension is loaded, and
708
+ validation runs up to 3.5x faster than with a validator built at run time. See the
709
+ [macro documentation](https://docs.rs/jsonschema/latest/jsonschema/#ruby-extension-modules).
710
+
711
+ This is not available from the `jsonschema_rs` gem, which takes its schemas at run time.
712
+ A complete extension with its build and test commands lives in
713
+ [`examples/magnus-extension`](https://github.com/Stranger6667/jsonschema/tree/master/examples/magnus-extension).
714
+
703
715
  ## Acknowledgements
704
716
 
705
717
  This library draws API design inspiration from the Python [`jsonschema`](https://github.com/python-jsonschema/jsonschema) package. We're grateful to the Python `jsonschema` maintainers and contributors for their pioneering work in JSON Schema validation.
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSONSchema
4
- VERSION = "0.57.0"
4
+ VERSION = "0.58.1"
5
5
  end
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.57.0
4
+ version: 0.58.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Dmitry Dygalo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-21 00:00:00.000000000 Z
11
+ date: 2026-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal