jsonschema_rs 0.42.2-aarch64-linux → 0.43.0-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: 021caf2f915f392daf60de381ba97591416e2bbdf1a62373d3d9290b88f8e095
4
- data.tar.gz: 918d7d998823717abcce53e3b08ced90567025a535d5888332d3795dddfa4419
3
+ metadata.gz: 5d4195c753bb191b2bcceaaaf0d76c15cd23e5ea653202c072d132d196d61f86
4
+ data.tar.gz: 9d18e23218199f65519e5606740a29d804052b83d36af4d3cd555d3fea34321c
5
5
  SHA512:
6
- metadata.gz: f76bc26b78ad1e70ff97ef1164c0b9f88001f010660c8cb7da90e5dc997fb0d85a503002a57bff010dee5fc98b7deb0f3446f71a71b83a1b1ddc32983d140b4f
7
- data.tar.gz: 4634c084b338805ca2f90174c94c55dbf3bf23340c25704e02802de70db302d4c1a2521008eff8756d1228568bd77e4a844408032177b26fb26ecc0d307e2368
6
+ metadata.gz: 3a1f2be03d76f8eca400a5c6b46738229aad03cf49b79b34b36ba8f1a1c068add17e6a3f13751ef0ba74898863a18df1e69c3431591cf463cdfd5140e762cb43
7
+ data.tar.gz: 817ab7546486552b78f91abb7bb16ad9edc866150c59503f2bf3bffc04f68cdc7a46417948b2239e5c70b67f95d5422bc7bf67c7219607c8d56f9b14ed915383
data/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.43.0] - 2026-02-28
6
+
7
+ ### Added
8
+
9
+ - `validator_cls_for(schema)` function to detect and return the appropriate validator class for a schema.
10
+
11
+ ### Fixed
12
+
13
+ - `anyOf`, `format`, `unevaluatedProperties`, and `unevaluatedItems` now correctly collect annotations per spec.
14
+
15
+ ### Performance
16
+
17
+ - Optimize `pattern` and `patternProperties` for `^(a|b|c)$` alternations via linear array scan.
18
+ - Optimize `^\S*$` patterns by replacing regex with a direct ECMA-262 whitespace check.
19
+
5
20
  ## [0.42.2] - 2026-02-26
6
21
 
7
22
  ### Changed
@@ -28,6 +43,7 @@
28
43
 
29
44
  - Initial public release
30
45
 
31
- [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.42.2...HEAD
46
+ [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.43.0...HEAD
47
+ [0.43.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.42.2...ruby-v0.43.0
32
48
  [0.42.2]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.42.1...ruby-v0.42.2
33
49
  [0.42.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.42.0...ruby-v0.42.1
Binary file
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.42.2"
4
+ VERSION = "0.43.0"
5
5
  end
data/sig/jsonschema.rbs CHANGED
@@ -32,6 +32,10 @@ module JSONSchema
32
32
  ?http_options: HttpOptions?
33
33
  ) -> Validator
34
34
 
35
+ # Detect the JSON Schema draft for a schema and return the corresponding validator class.
36
+ # Draft is detected automatically from the `$schema` field. Defaults to Draft202012Validator.
37
+ def self.validator_cls_for: (untyped schema) -> (singleton(Draft4Validator) | singleton(Draft6Validator) | singleton(Draft7Validator) | singleton(Draft201909Validator) | singleton(Draft202012Validator))
38
+
35
39
  # One-off validation returning boolean.
36
40
  def self.valid?: (
37
41
  untyped schema,
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.42.2
4
+ version: 0.43.0
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-02-26 00:00:00.000000000 Z
11
+ date: 2026-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal