jsonschema_rs 0.49.0-x86_64-linux → 0.49.1-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc37beaa8d80f339fa0bf3df238011a823f77a91389edc8d0e075f6a9e468267
4
- data.tar.gz: 6c481ec8b31825e2150b8881ec380878dc610cf087362fff3d967240fc8b3271
3
+ metadata.gz: 474c9ad65a621029ce89f0816d34b21c11d6accef843261f9829a79542751a34
4
+ data.tar.gz: ebf69013df1dbc23e0f62ed8dbca77c0c0a15eb2efcd2e16e82d2b94d25fe59e
5
5
  SHA512:
6
- metadata.gz: b91d1838eca7aedfe097864a7af1b46cc9350eede75c752caba4fb09418f40c57a1236394c5831778ddda830d62d6b7d16077e78339f05050d64f2ed9b93c09f
7
- data.tar.gz: 5ae2c930d31a811773a5f90639a4e44f0e2aa08ff2651c62f57438e294f4a97ec7ce650f18af06fb39b6953b678c5f7c5fd2d36218acf4d75a13f6761e53a9b6
6
+ metadata.gz: 52aa009b6ea11c7df004ec6fc5bee936a0fd15f46d8d0320a190b12cefd8c83c34400b2e974c50086bdfd95affaaf1ab9d0f235fc971cce3c141c8caa928b6bf
7
+ data.tar.gz: f9e045feafa092e82f7fa7a8eabaabe462e7a4e985f3b4dfac052d2e1d8f7096cefcbf696171deaf71d2da282c00bb2b3a52f4131ea7255a7b612ecc9d3921a3
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.49.1] - 2026-07-25
6
+
7
+ ### Fixed
8
+
9
+ - `JSONSchema.canonicalize` rejecting `pattern_options` (it should take the same regex configuration as validators).
10
+ - `InvalidPattern` failures raising the base `CanonicalizationError` (they should raise `JSONSchema::Canonical::InvalidPattern`).
11
+
5
12
  ## [0.49.0] - 2026-07-25
6
13
 
7
14
  ### Added
@@ -219,7 +226,8 @@
219
226
 
220
227
  - Initial public release
221
228
 
222
- [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.0...HEAD
229
+ [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.1...HEAD
230
+ [0.49.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.0...ruby-v0.49.1
223
231
  [0.49.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.48.5...ruby-v0.49.0
224
232
  [0.48.5]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.48.2...ruby-v0.48.5
225
233
  [0.48.2]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.48.1...ruby-v0.48.2
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.49.0"
4
+ VERSION = "0.49.1"
5
5
  end
data/sig/jsonschema.rbs CHANGED
@@ -29,6 +29,9 @@ module JSONSchema
29
29
  class InvalidSchemaType < CanonicalizationError
30
30
  end
31
31
 
32
+ class InvalidPattern < CanonicalizationError
33
+ end
34
+
32
35
  # A schema reduced to canonical form: schemas accepting the same values share one form.
33
36
  class CanonicalSchema
34
37
  def to_json_schema: () -> untyped
@@ -164,7 +167,8 @@ module JSONSchema
164
167
  def self.canonicalize: (
165
168
  untyped schema,
166
169
  ?draft: draft?,
167
- ?validate_formats: bool?
170
+ ?validate_formats: bool?,
171
+ ?pattern_options: (RegexOptions | FancyRegexOptions)?
168
172
  ) -> Canonical::CanonicalSchema
169
173
 
170
174
  # Create a validator with auto-detected draft version.
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.49.0
4
+ version: 0.49.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Dmitry Dygalo