jsonschema_rs 0.49.5-aarch64-linux → 0.49.6-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: 4769283677c6dd78d9fee5a261b092dc3c1988f0b5c3719294a6d35b47b8f3e7
4
- data.tar.gz: 5f722cec6c6a475dc6e30db09e64c9c226bfa51858204ddd04177f1d64c91713
3
+ metadata.gz: '07847ea4476c91eacdd6c87f05653aca1e501e8d41ecb218e88291c9cae6da87'
4
+ data.tar.gz: e206925112e0edc658b1e5a206b7ee288c47e9afa3008df9f083e7bad83b98a2
5
5
  SHA512:
6
- metadata.gz: 4084ff4aaf896f59841e10c18967244a4d77342a5bc44e88f68ae0f579c7affc2ef2d136d6c2233f894a9d0162a977880c1492ec744662734063dadaecc26da6
7
- data.tar.gz: 5c5ea50c3291595e8e8b80e0214b6bd2e780e1aaa8b5404593550c5cbfa3462b08af998d2f97e9f0a1be17b7772e4c1ab0aa6be87ca8b5e95ac053646bd4342e
6
+ metadata.gz: 2bfb492998dd9ac84dc0ce46d8adb37c4e699d863fb815adc4edca2dbd1dee279799be9c79a0fbf8e70bc2d38795eb78ba618fed22ed34a4889b135f8b1b75d0
7
+ data.tar.gz: 0174ad4ebbdb3aef1d1fbb21cd5901fa7479954ef223e959d52e370bed7fb6775522b28232d75636aac9111b85b2f85e6499d8ce6e28965884cb6dfda3aef1c0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.49.6] - 2026-08-06
6
+
7
+ ### Added
8
+
9
+ - Canonicalization of a negated `uniqueItems`, where the complement demands a repeated element under the length floor two elements imply.
10
+ - Canonicalization of a negated array tuple, where each position's complement stands under the length that reaches it.
11
+ - Canonicalization of `contains` demands sharing no value, where their counts add up into a length floor.
12
+ - `CanonicalSchema#negate` through references, where the complement of the resolved target takes the reference's place.
13
+ - Canonicalization of negated `propertyNames` and `additionalProperties`, where the complement spells the violating-key demand instead of a `not` residual.
14
+ - Canonicalization of negated `additionalProperties` under Draft 4, where the violating-key demand spells the closed property map.
15
+ - Canonicalization of `not` a reference, where the complement of the resolved target takes the pointer's place.
16
+ - Canonicalization of a negated `oneOf`, where the complement spells the values no branch admits beside the values two branches share.
17
+ - Canonicalization of negated `items` under Draft 4, where the violating-element demand spells the barred element schema.
18
+
19
+ ### Changed
20
+
21
+ - `ArrayView` reports distinctness in three states, so an array demanding a repeated element reads apart from one demanding distinct elements.
22
+
23
+ ### Fixed
24
+
25
+ - `CanonicalSchema#negate` keeping a root self-reference in the complement, where it points at the complement instead of the source.
26
+ - An `additionalItems` that tails no tuple keeping the whole document unmodeled under Draft 2020-12.
27
+
5
28
  ## [0.49.5] - 2026-08-05
6
29
 
7
30
  ### Added
@@ -304,7 +327,8 @@
304
327
 
305
328
  - Initial public release
306
329
 
307
- [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.5...HEAD
330
+ [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.6...HEAD
331
+ [0.49.6]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.5...ruby-v0.49.6
308
332
  [0.49.5]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.4...ruby-v0.49.5
309
333
  [0.49.4]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.3...ruby-v0.49.4
310
334
  [0.49.3]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.2...ruby-v0.49.3
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSONSchema
4
- VERSION = "0.49.5"
4
+ VERSION = "0.49.6"
5
5
  end
data/sig/jsonschema.rbs CHANGED
@@ -121,7 +121,7 @@ module JSONSchema
121
121
  class ArrayView
122
122
  def min_items: () -> Integer?
123
123
  def max_items: () -> Integer?
124
- def unique_items: () -> bool
124
+ def distinctness: () -> (:unconstrained | :all_distinct | :some_repeated)
125
125
  def prefix_items: () -> Array[CanonicalSchema]
126
126
  def items: () -> CanonicalSchema?
127
127
  def contains: () -> Array[ContainsView]
@@ -146,6 +146,24 @@ module JSONSchema
146
146
  def property_names: () -> CanonicalSchema?
147
147
  def properties: () -> Hash[String, CanonicalSchema]
148
148
  def pattern_properties: () -> Hash[String, CanonicalSchema]
149
+ def additional_properties: () -> CanonicalSchema?
150
+ def violations: () -> Array[NameFailsView | UndeclaredValueFailsView]
151
+ def inspect: () -> String
152
+ def deconstruct_keys: (untyped keys) -> Hash[Symbol, untyped]
153
+ end
154
+
155
+ # Some key's name fails the schema.
156
+ class NameFailsView
157
+ def schema: () -> CanonicalSchema
158
+ def inspect: () -> String
159
+ def deconstruct_keys: (untyped keys) -> Hash[Symbol, untyped]
160
+ end
161
+
162
+ # Some key outside `names` and matching none of `patterns` has a value failing `additional`.
163
+ class UndeclaredValueFailsView
164
+ def names: () -> Array[String]
165
+ def patterns: () -> Array[String]
166
+ def additional: () -> CanonicalSchema
149
167
  def inspect: () -> String
150
168
  def deconstruct_keys: (untyped keys) -> Hash[Symbol, untyped]
151
169
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonschema_rs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.5
4
+ version: 0.49.6
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Dmitry Dygalo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-04 00:00:00.000000000 Z
11
+ date: 2026-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal