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 +4 -4
- data/CHANGELOG.md +8 -1
- data/Cargo.toml +2 -2
- data/README.md +6 -0
- data/ext/jsonschema/Cargo.lock +324 -354
- data/ext/jsonschema/Cargo.toml +3 -3
- data/lib/jsonschema/version.rb +1 -1
- data/sig/jsonschema.rbs +4 -0
- data/src/options.rs +36 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e2cfb67c713f4219dc92d901268be8a1bf2ba2823a486057ee09601110adba1
|
|
4
|
+
data.tar.gz: 400e5cd0dcd73200a2aff56887698c2ee8460025c50f0621179b2997289dcdf9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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.
|
|
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
|