jsonschema_rs 0.63.0-aarch64-linux → 0.63.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 +4 -4
- data/CHANGELOG.md +8 -1
- data/README.md +6 -0
- 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 +4 -0
- 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: 8d3fb22f38c7cbf4a38f86f891d0353b99a9e87721b1a94add1a3be210b6c3f2
|
|
4
|
+
data.tar.gz: f7ddba356fab2ac8c16f197a4c66e753eeef6aaecd80b7c511405b818c718828
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb8c5d41af63ed629d5d68b40b6c53101621fc284c7ea5a4a5eec3ff7ca61eed6854619b83602b6f4d5937522924ed3d268e0e0ebd01def9bc418e8c1e72cce8
|
|
7
|
+
data.tar.gz: da49ad11b4abaf8b981564abaffd96324bc149eb667c0d701690031bc417de11690702a67b47a6597bf4a4ed57e32e79e32dee545cd5e9103a30138944ddf129
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.63.1] - 2026-11-23
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `JSONSchema.known_formats`, the names of the formats with a check under a draft, built in and registered.
|
|
10
|
+
|
|
5
11
|
## [0.63.0] - 2026-11-22
|
|
6
12
|
|
|
7
13
|
### Added
|
|
@@ -873,7 +879,8 @@
|
|
|
873
879
|
|
|
874
880
|
- Initial public release
|
|
875
881
|
|
|
876
|
-
[Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.63.
|
|
882
|
+
[Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.63.1...HEAD
|
|
883
|
+
[0.63.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.63.0...ruby-v0.63.1
|
|
877
884
|
[0.63.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.62.0...ruby-v0.63.0
|
|
878
885
|
[0.62.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.61.2...ruby-v0.62.0
|
|
879
886
|
[0.61.2]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.61.1...ruby-v0.61.2
|
data/README.md
CHANGED
|
@@ -157,6 +157,12 @@ validator = JSONSchema.validator_for({ "format" => "int32" }, validate_formats:
|
|
|
157
157
|
validator.valid?(2**31) # => false
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
+
`JSONSchema.known_formats` lists the formats with a check under a draft, built in and from `formats`:
|
|
161
|
+
|
|
162
|
+
```ruby
|
|
163
|
+
JSONSchema.known_formats(:draft202012, formats: { "phone" => phone_format }).include?("phone") # => true
|
|
164
|
+
```
|
|
165
|
+
|
|
160
166
|
### Custom keyword validators
|
|
161
167
|
|
|
162
168
|
```ruby
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/jsonschema/version.rb
CHANGED
data/sig/jsonschema.rbs
CHANGED
|
@@ -380,6 +380,10 @@ module JSONSchema
|
|
|
380
380
|
class NumberFormat
|
|
381
381
|
end
|
|
382
382
|
|
|
383
|
+
# The names of the formats with a check under `draft`, sorted and without duplicates: the
|
|
384
|
+
# built-in formats and those in `formats`.
|
|
385
|
+
def self.known_formats: (draft draft, ?formats: Hash[String, (^(String) -> bool) | NumberFormat]?) -> Array[String]
|
|
386
|
+
|
|
383
387
|
# Create a validator with auto-detected draft version.
|
|
384
388
|
def self.validator_for: (
|
|
385
389
|
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.63.
|
|
4
|
+
version: 0.63.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-11-
|
|
11
|
+
date: 2026-11-23 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.63.
|
|
59
|
+
documentation_uri: https://github.com/Stranger6667/jsonschema/blob/ruby-v0.63.1/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'
|