{"id":13586972,"url":"https://github.com/getsentry/json-schema-diff","last_synced_at":"2026-01-29T16:08:59.425Z","repository":{"id":152186374,"uuid":"620015386","full_name":"getsentry/json-schema-diff","owner":"getsentry","description":"Diff changes between JSON schemas","archived":false,"fork":false,"pushed_at":"2026-01-23T13:22:12.000Z","size":79,"stargazers_count":28,"open_issues_count":16,"forks_count":7,"subscribers_count":33,"default_branch":"main","last_synced_at":"2026-01-26T18:50:18.845Z","etag":null,"topics":["breaking-changes","json-schema","schema","tag-non-production"],"latest_commit_sha":null,"homepage":"https://docs.rs/json-schema-diff/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getsentry.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":["https://sentry.io/pricing/","https://sentry.io/"]}},"created_at":"2023-03-27T21:31:13.000Z","updated_at":"2026-01-23T13:22:15.000Z","dependencies_parsed_at":"2024-08-01T16:33:00.012Z","dependency_job_id":"d74755a2-99e4-4ca4-9f01-ef0f7561ecde","html_url":"https://github.com/getsentry/json-schema-diff","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/getsentry/json-schema-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fjson-schema-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fjson-schema-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fjson-schema-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fjson-schema-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getsentry","download_url":"https://codeload.github.com/getsentry/json-schema-diff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fjson-schema-diff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28880965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["breaking-changes","json-schema","schema","tag-non-production"],"created_at":"2024-08-01T15:05:56.589Z","updated_at":"2026-01-29T16:08:59.383Z","avatar_url":"https://github.com/getsentry.png","language":"Rust","readme":"# json-schema-diff\n\nA work-in-progress tool to diff changes between JSON schemas. A lot of JSON\nschema features are not implemented and therefore ignored, see [the issue\ntracker](https://github.com/getsentry/json-schema-diff/issues).\n\nUse this tool as a best-effort to find obviously breaking changes in CI, but not for much more.\n\nThis crate is used with draft-07 but even that is work in progress.\n\n## Usage via CLI\n\n[Install Rust](https://rustup.rs/) and:\n\n```bash\ncargo install json-schema-diff\n\ncat schema-old.json schema-new.json\n# {\"type\": \"string\"}\n# {\"type\": \"boolean\"}\n\ncargo run --features=build-binary -- \\\n    schema-old.json \\\n    schema-new.json\n# {\"path\":\"\",\"change\":{\"TypeRemove\":{\"removed\":\"string\"}},\"is_breaking\":true}\n# {\"path\":\"\",\"change\":{\"TypeAdd\":{\"added\":\"boolean\"}},\"is_breaking\":false}\n```\n\nSentry uses this tool in\n[`sentry-kafka-schemas`](https://github.com/getsentry/sentry-kafka-schemas) to\nannotate pull requests with breaking changes made to schema definitions. It\ninvokes the CLI tool on the schema from master vs the schema in the PR, and\npost-processes the output using a Python script for human consumption.\n\n`is_breaking` is just a suggestion. You may choose to ignore it entirely and\ninstead define which kinds of changes are breaking to you in wrapper scripts.\n\n## Usage as library\n\n```rust\nuse json_schema_diff::*;\n\nlet lhs = serde_json::json! {{ \n    \"type\": \"string\",\n}};\nlet rhs = serde_json::json! {{ \n    \"type\": \"boolean\",\n}};\n\nassert_eq!(\n    json_schema_diff::diff(lhs, rhs).unwrap(),\n    vec![\n        Change {\n            path: \"\".to_owned(),\n            change: ChangeKind::TypeRemove { removed: JsonSchemaType::String }\n        },\n        Change {\n            path: \"\".to_owned(),\n            change: ChangeKind::TypeAdd { added: JsonSchemaType::Boolean }\n        }\n    ]\n);\n```\n\n## License\n\nLicensed under Apache 2.0\n","funding_links":["https://sentry.io/pricing/","https://sentry.io/"],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fjson-schema-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetsentry%2Fjson-schema-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fjson-schema-diff/lists"}