{"id":16322141,"url":"https://github.com/1999/json-schema-comparison","last_synced_at":"2025-05-14T13:32:41.420Z","repository":{"id":142989522,"uuid":"102311717","full_name":"1999/json-schema-comparison","owner":"1999","description":"JSON Schema semver comparison tool","archived":false,"fork":false,"pushed_at":"2017-09-04T04:09:22.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T03:44:14.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/1999.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-04T02:44:56.000Z","updated_at":"2017-09-04T02:45:31.000Z","dependencies_parsed_at":"2023-03-20T12:57:43.581Z","dependency_job_id":null,"html_url":"https://github.com/1999/json-schema-comparison","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999%2Fjson-schema-comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999%2Fjson-schema-comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999%2Fjson-schema-comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999%2Fjson-schema-comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1999","download_url":"https://codeload.github.com/1999/json-schema-comparison/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254150579,"owners_count":22022985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-10T22:50:07.793Z","updated_at":"2025-05-14T13:32:41.386Z","avatar_url":"https://github.com/1999.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Schema comparison tool\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/1999/json-schema-comparison.svg)](https://greenkeeper.io/)\n[![Build Status](https://img.shields.io/travis/1999/json-schema-comparison.svg?style=flat)](https://travis-ci.org/1999/json-schema-comparison)\n[![DevDependency Status](http://img.shields.io/david/dev/1999/json-schema-comparison.svg?style=flat)](https://david-dm.org/1999/json-schema-comparison#info=devDependencies)\n\nThis projected started as internal tool used to compare JSON schemas. it doesn't have support for all of JSON schema types and attributes. However you're more than welcome to create a PR for it and add/fix whatever part of standard you're missing.\n\nComparison is based on SnowPlow SchemaVer data model. Read why semver cannot be applied to schema comparison [here]([Snowplow](https://snowplowanalytics.com/blog/2014/05/13/introducing-schemaver-for-semantic-versioning-of-schemas/)).\n\n## Install\n\n```\nnpm install json-schema-comparison --save\n```\n\n# Usage\n\n## Javascript\n\n```javascript\nconst compare = require('json-schema-comparison');\nconst compat = compare(oldSchema, newSchema); // can be \"model\", \"revision\", \"addition\" and \"equal\"\n```\n\n## Typescript\n\n```typescript\nimport { default as compare, CompareResult } from 'json-schema-comparison';\nconst compat: CompareResult = compare(oldSchema, newSchema);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999%2Fjson-schema-comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1999%2Fjson-schema-comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999%2Fjson-schema-comparison/lists"}