rust_json_schema 0.4.1-arm-linux → 0.5.0-arm-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/README.md +4 -2
- data/Rakefile +1 -1
- data/lib/rust_json_schema/3.0/rust_json_schema.so +0 -0
- data/lib/rust_json_schema/3.1/rust_json_schema.so +0 -0
- data/lib/rust_json_schema/3.2/rust_json_schema.so +0 -0
- data/lib/rust_json_schema/3.3/rust_json_schema.so +0 -0
- data/lib/rust_json_schema/3.4/rust_json_schema.so +0 -0
- data/lib/rust_json_schema/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83eaf2217c6d51a03d001128f0b80b3d17bca5fdfe6dfa3a9270fefec1b6bbc8
|
4
|
+
data.tar.gz: 9b4186545ab7d4f4ded9b270e6cace6d6b28cd639ccbba3c2984f84204ef60e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 330b35943572328db5a022ca1716c4ff1d2694280c70a065199fc5f585e97790535a5355a3c4280dda35c7f54d3078e1c6ed4ece3f09a83d25e0a210b73ba1d6
|
7
|
+
data.tar.gz: 18a746f5e73bd5f82e9fadeb77ae4bdadcddbce764b979b3946f8f6eba19d30c6f90a561d2b7c697bb626925834a9f445d4df2b242ab7c1298d04d654598ed0e
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
`rust_json_schema` is a Ruby wrapper gem for Rust's [jsonschema-rs crate](https://github.com/Stranger6667/jsonschema-rs).
|
6
6
|
|
7
7
|
> [!IMPORTANT]
|
8
|
-
> This gem is built with `json_schema` crate version `0.
|
8
|
+
> This gem is built with `json_schema` crate version `0.32.1`, and therefore does not support any features for any potential future versions of the crate. I will review and accept PRs if you would like to work on adding support for newer versions of the crate. I am trying to keep things up to date occasionally, but I am not regularly cutting new releases for each new version of the crate.
|
9
9
|
|
10
10
|
The minimum Ruby version required by this gem is 3.0, due to the runtime Rust libraries that make the extensions possible (and easy).
|
11
11
|
|
@@ -55,7 +55,9 @@ errors = validator.validate('{ "foo": 1, "bar": "wadus" }')
|
|
55
55
|
|
56
56
|
- `:draft` - Select the JSON schema draft number to use. Valid options are `draft4`, `draft6`, `draft7`, `draft201909`, and `draft202012`. Supported drafts are entirely determined by the `jsonschema` crate. The default draft is also determined by the crate. If new versions of the crate support additional draft versions, a code change in this gem will be required. I'm open to PRs to solve this problem - I don't know enough Rust to tell if it's easily done. _Both `draft201909` and `draft202012` are reported to have "some keywords not implemented", so use them at your own risk._
|
57
57
|
|
58
|
-
|
58
|
+
- `:with_base_uri` - Sets a base URI to use when resolving relative schema references during validation. Relative URIs within the schema will be evaluated relative to this base URI. This is especially useful when validating schemas loaded from sources without an inherent base URL.
|
59
|
+
|
60
|
+
Any additional options provided by the `jsonschema` crate are either options I do not understand as a whole, have not figured out how to (or tried to) implement, or may not make sense to implement in a wrapper library such as this.
|
59
61
|
|
60
62
|
`RustJSONSchema::Validator#options` is provided and will return a Hash containing configuration options from the underlying Rust library. While I make an effort for them to look similar, or identical, to the options passed into the `Validator` initializer, the initializer arguments and the returned Hash should not be considered one-to-one. It exists as a way to confirm the configuration of the underlying schema validator instance.
|
61
63
|
|
data/Rakefile
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rust_json_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: arm-linux
|
6
6
|
authors:
|
7
7
|
- Taylor Thurlow
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- lib/rust_json_schema/3.1/rust_json_schema.so
|
56
56
|
- lib/rust_json_schema/3.2/rust_json_schema.so
|
57
57
|
- lib/rust_json_schema/3.3/rust_json_schema.so
|
58
|
+
- lib/rust_json_schema/3.4/rust_json_schema.so
|
58
59
|
- lib/rust_json_schema/version.rb
|
59
60
|
- sig/rust_json_schema.rbs
|
60
61
|
homepage: https://github.com/taylorthurlow/rust_json_schema-rb
|
@@ -75,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
76
|
version: '3.0'
|
76
77
|
- - "<"
|
77
78
|
- !ruby/object:Gem::Version
|
78
|
-
version: 3.
|
79
|
+
version: 3.5.dev
|
79
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
81
|
requirements:
|
81
82
|
- - ">="
|