jsonschema_rs 0.63.0 → 0.63.1

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: 11341f312f2370a4aad4177a118b755a93c5c5125b9f16909a3789ac4d32b723
4
- data.tar.gz: 459de3dbe56f54449b438e4ba989e1a5210c25cbcd79592c907861feae30538d
3
+ metadata.gz: 5e2cfb67c713f4219dc92d901268be8a1bf2ba2823a486057ee09601110adba1
4
+ data.tar.gz: 400e5cd0dcd73200a2aff56887698c2ee8460025c50f0621179b2997289dcdf9
5
5
  SHA512:
6
- metadata.gz: 2a1321a9cf38d77fe449faf466b01272c37e39072e970c009fcc9eff7d88de8df13db108dd73fb822d2d03b01a7e7a3b25d791c513ee718579255a35214f89eb
7
- data.tar.gz: 20c4f5cbbfe0baf5a7a1a1c6172426b04c5bac79c5572e993ff93d7ead9453766c4996a89481c52395fc245d1ff392b4648d9db5daf81d082be6e826a7eca773
6
+ metadata.gz: 6cb373a9cdaa960f08a7c28b6a7764c1641d040abe38ea4aca68ccee12f35dceed92aeea6f4cbdbe77d7db69e5eed06622b5ec8cfea56c84b8f0ba7088d3ea4d
7
+ data.tar.gz: 459332dabaa8b9f4efc287de98ff0efb3ea89b3607cdc6b329602c0e769ce0b728bbe8b27fe3c53b4d21556b0909192b74344f5f9bcbd46dca1bf7a226997e78
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.0...HEAD
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/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "jsonschema-rb"
3
- version = "0.63.0"
3
+ version = "0.63.1"
4
4
  edition = "2021"
5
5
  authors = ["Dmitry Dygalo <dmitry@dygalo.dev>"]
6
6
  license = "MIT"
@@ -14,7 +14,7 @@ crate-type = ["cdylib"]
14
14
 
15
15
  [dependencies]
16
16
  strum = "0.28.0"
17
- jsonschema = { version = "0.63.0", default-features = false, features = ["magnus", "arbitrary-precision", "resolve-http", "resolve-file", "tls-ring", "macros", "idna", "json-text"] }
17
+ jsonschema = { version = "0.63.1", default-features = false, features = ["magnus", "arbitrary-precision", "resolve-http", "resolve-file", "tls-ring", "macros", "idna", "json-text"] }
18
18
  magnus = { version = "0.9", features = ["rb-sys"] }
19
19
  rb-sys = "0.9"
20
20
  serde = { workspace = true }
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