rust_json_schema 0.4.3-x86_64-linux-musl → 0.5.0-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c35d34ae18fdcab345dbce2505dcd9d3d7eab120d5105f43970548129468f932
4
- data.tar.gz: 434c0869179d88e69d942404a4c5c33bd972fd4884073587051b696c2dd990c0
3
+ metadata.gz: 76685f9e382ca8b7478f25693154880f003bd58d6cae84d51b65b5ed53082245
4
+ data.tar.gz: 20efcba4536c1c8cdedc3fe7cde859005dd7e263044e85650dc3394b1f11cd73
5
5
  SHA512:
6
- metadata.gz: 61abf2e8e2fb77e15d361352f174520d2dbd70436ba3dac025926f0690302d1a58101785694e949a2a2f5b91fca35bbf4fe84fa37783340aca8add519f9ecd53
7
- data.tar.gz: 3d19a4ec8e16c9c939cf89bfeebb72b91cb8119ea9cb652968a29a75007b5e24f5d8e3b4e218d8d0956089df757f43bdf7a8932ff0f2b301144383dd52246e2e
6
+ metadata.gz: 5ff61404f193ae5eddd2b38c7eccd3df9138f038b2d3e755bf060cdbecf52ffe1858ab2fb0f6cef9741236f0dd80ebb42ba10c68a91c374636f621b2207a0535
7
+ data.tar.gz: 593598f460af2f32f647fa35ddfc145662d8ca736f53a404a0fb65ba70090da6ffa4dc365f91ce62b6974a52cee67365647d0f435c55033b4bde0e985ee03596
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.29.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 generally am trying to keep things up to date but I am not cutting new releases for each new patch version of the crate.
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
- Any additional options provided by the `jsonschema` crate are options I do not understand or may not make sense to implement in a wrapper library such as this.
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RustJSONSchema
4
- VERSION = "0.4.3"
4
+ VERSION = "0.5.0"
5
5
  end
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.3
4
+ version: 0.5.0
5
5
  platform: x86_64-linux-musl
6
6
  authors:
7
7
  - Taylor Thurlow
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-25 00:00:00.000000000 Z
11
+ date: 2025-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler