Skip to content

Commit b91c338

Browse files
committed
fix: Align schema compatibility with JSON Schema semantics
- compare const, enum, and numeric constraints by accepted values - handle exact mixed numeric equality and signed-zero bounds - apply the validator's default dialect to unevaluated properties
1 parent 6a8d744 commit b91c338

5 files changed

Lines changed: 390 additions & 94 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ chrono = "0.4"
183183

184184
# JSON Schema validation
185185
jsonschema = { version = "0.40", default-features = false }
186+
# Exact comparison between differently typed numbers, as used by `jsonschema`.
187+
num-cmp = "0.1"
186188

187189
# JSON Schema generation
188190
schemars = { version = "1.2", features = ["uuid1"] }

gts-dylint/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gts/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ serde.workspace = true
2121
serde_json.workspace = true
2222
thiserror.workspace = true
2323
jsonschema.workspace = true
24+
num-cmp.workspace = true
2425
schemars.workspace = true
2526
walkdir.workspace = true
2627
tracing.workspace = true

0 commit comments

Comments
 (0)