corvus_json_schema 0.1.1-aarch64-linux → 0.1.2-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2655fbc65f259a767740792d96a622a23d04c02c3249efc5117949d1b1d61875
4
- data.tar.gz: 11006c39433985adeed20cd2261c145d75e92c2e98c84a88c6c89f3ff0dddc46
3
+ metadata.gz: 286632ce0d8101e99083636cee4a3d4149666130841755cfd92b8b9444590f6b
4
+ data.tar.gz: 241bda7ea04b98dafc4a843872020477f3c3f6eed1447258bf8977be8e53f811
5
5
  SHA512:
6
- metadata.gz: 971456beb9fd0ded883cf7e0192533dca102e5fc106ccb26132062a4b2b1beba16e094f13892cb95b6c1a17e9ff3fe558fe768b33da41210d6eaee814ffd7e3f
7
- data.tar.gz: b4130e85a1831f200b8f621d7a4b02e3294c95ab8ec72a44ed3f9867addb5c03f6a1e1c5ae76bd02627d88cda3db9b9252268675fc846f74916f0dc54546e92f
6
+ metadata.gz: b39b58f334e55e3f59db44db62737dac49ee5f7ca812d216620915bd5182161d2fab45dc89beff5c911f9972c328124c62df74c9143762d66c4c743db63d1df7
7
+ data.tar.gz: 54135b0b129626ef35887cfb6105a08e9232728ebcb8e2a0391d6ce5a9f55a4899c694c9411407c1a99d9698bc24893c9325e86e15dc7301cdb2a802d1ac700f
data/README.md CHANGED
@@ -11,7 +11,7 @@ standalone evaluator.
11
11
  validated without creating Ruby objects for it.
12
12
  - **Precompiled**: native gems for Linux (x86_64 and aarch64, glibc and musl), macOS (x86_64 and arm64) and Windows
13
13
  (x64), for Ruby 3.3, 3.4 and 4.0. On other platforms the source gem builds the extension, which needs a Rust
14
- toolchain (1.85 or later) and libclang.
14
+ toolchain (1.89 or later) and libclang.
15
15
 
16
16
  ## Install
17
17
 
data/VERSIONHISTORY.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  The version history of the `corvus_json_schema` Ruby gem. It is versioned independently of the Corvus NuGet packages and of the [corvus-json-schema](../../src-rs/corvus-json-schema/VERSIONHISTORY.md) Rust crate it is built on.
4
4
 
5
+ ## V0.1.2
6
+
7
+ V0.1.2 fixes a crash of the Ruby process for a schema whose `not` leads back to the schema it is in, by taking version 0.1.6 of the corvus-json-schema crate. There are no API changes. Versions 0.1.0 and 0.1.1 are affected.
8
+
9
+ ### Bug fixes
10
+
11
+ - **A `not` that leads back to the schema it is in.** A schema can loop without consuming the instance. The gem abandons such an evaluation at `max_depth` (128 by default) and raises `CorvusJsonSchema::DepthError`. Evaluating `not` went around that guard. For a schema such as `{"not": {"$ref": "#"}}`, validating an instance that reached the `not` recursed in the native extension until the stack overflowed, which crashes the Ruby process. `valid?`, `valid_json?` and `evaluate` were all affected. A `not` is now under the guard, so they raise `CorvusJsonSchema::DepthError`. The fault is in the schema. No instance causes it for a schema without such a loop, so a program was exposed only if it compiled schemas it did not write. A schema that loops elsewhere under a `not` was not affected in this gem: it raised `CorvusJsonSchema::DepthError`, and still does.
12
+
5
13
  ## V0.1.1
6
14
 
7
15
  V0.1.1 fixes wrong validation results for one form of pattern, by taking version 0.1.4 of the corvus-json-schema crate. There are no API changes. Version 0.1.0 is affected.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CorvusJsonSchema
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corvus_json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - endjin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-08 00:00:00.000000000 Z
11
+ date: 2026-10-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'JSON Schema validation for Ruby with the corvus-json-schema Rust crate:
14
14
  drafts 4, 6, 7, 2019-09 and 2020-12, results and annotations, Ruby values read in