json-schema-diff
json-schema-diff copied to clipboard
Diff changes between JSON schemas
```console $ git show commit f49845a5ec744073f7e7cc7e76117fb436147b4a (HEAD -> main, origin/main, origin/HEAD) Merge: 1ac937e afb6949 Author: getsentry-bot Date: Tue Jun 6 10:15:49 2023 +0000 Merge branch 'release/0.1.7' $ cat schema.json {...
detect when enum variants are extended/reduced see https://github.com/getsentry/sentry-kafka-schemas/pull/158/
I am not sure this is a good idea though.Perhaps we can impl `JsonSchemaExt` on `Schema` instead of `SchemaObject`, with the newly introduced method `as_object`: ```rust trait JsonSchemaExt { fn...
https://github.com/getsentry/json-schema-diff/pull/20#issuecomment-1540131938 ---- > This is a completely unrealistic schema (I hope), but I'm just curious, do you think it is possible to handle this case and produce no diff? ```...
Addition of `pattern` or `format` should be a breaking change. Removal should not be. Changing `format` to a different value should also be a breaking change. Not out of principle,...
We can employ cargo-fuzz or cargo-afl to find two jsonschemas that are not compatible with each other, but produce no diff by the tool. afl produces a random bytestring. we...
I think what we could do there for a start is to flag moving properties from `properties` to `patternProperties` as a breaking change.
Hi, would you be open to the idea of json-schema-diff supporting JSON Schema [Draft 2020-12](https://json-schema.org/draft/2020-12)? i.e. accepting draft-07 compatible changes as pull requests? The most interesting features for me would...
## Summary Implements detection of JSON Schema string validation constraints: `pattern`, `minLength`, and `maxLength`. ## Changes ### Pattern Support - **PatternAdd/Remove/Change** change types - Pattern changes conservatively treated as breaking...