jsonschema_rs 0.49.0-x86_64-linux-musl → 0.49.1-x86_64-linux-musl
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 +9 -1
- 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
- data/sig/jsonschema.rbs +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 458181fa49a021ffe1605c4d30eff3acfb3917bdf1f262b093d4ead54834c5f7
|
|
4
|
+
data.tar.gz: 20f67709d3f4d8c0854347852d4bacc80d8dec716717affca4d900628c192281
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 295331f6e7c899663a41233df3d56df1b748fb221d6edf42658be342714c05350c45b9fd6d559c2753e99be93404a02aa2f664041dccb1a850e0c22cec38ba92
|
|
7
|
+
data.tar.gz: fe557cce5fd0234cee76ab6369f9906921e7581ddaca71fd45638142acb0a4bd043fd2b8a38dba11ae362a122540c0e317252db357cdbc8bbf00b47468280caa
|
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.
|
|
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
|
data/lib/jsonschema/version.rb
CHANGED
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.
|