{"id":15440763,"url":"https://github.com/jonluca/json-schema-walker","last_synced_at":"2025-04-19T19:35:27.157Z","repository":{"id":51000429,"uuid":"520188639","full_name":"jonluca/json-schema-walker","owner":"jonluca","description":"Walk through the properties of a json schema","archived":false,"fork":false,"pushed_at":"2023-11-08T22:22:16.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T05:57:48.528Z","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/jonluca.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":"2022-08-01T16:43:42.000Z","updated_at":"2024-06-19T11:15:38.472Z","dependencies_parsed_at":"2024-06-19T11:25:44.789Z","dependency_job_id":null,"html_url":"https://github.com/jonluca/json-schema-walker","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.08333333333333337,"last_synced_commit":"7f1c2f52c2fe1c4efdd1bcf944e6884fb73e2ae4"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonluca%2Fjson-schema-walker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonluca%2Fjson-schema-walker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonluca%2Fjson-schema-walker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonluca%2Fjson-schema-walker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonluca","download_url":"https://codeload.github.com/jonluca/json-schema-walker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240409812,"owners_count":19796794,"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-01T19:15:15.793Z","updated_at":"2025-03-02T22:31:38.046Z","avatar_url":"https://github.com/jonluca.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Schema Walker\n\nLoosely based on [CloudFlare's json schema tools](https://github.com/cloudflare/json-schema-tools/tree/master/workspaces/json-schema-walker)\n\nA system that visits all schema objects in a JSON Schema document and makes callbacks before and/or after visiting all of the current schema object's subschemas.\n\n## Usage\n\n```typescript\nimport { Walker } from \"json-schema-walker\";\nconst schema = {\n  // your json schema\n};\nconst walker = new Walker\u003cT\u003e();\nawait walker.loadSchema(schema, {\n  cloneSchema: true,\n  dereference: false,\n  dereferenceOptions: {\n    dereference: {\n      circular: \"ignore\",\n    },\n  },\n});\nconst convertSchema = (schema) =\u003e {\n  // do something with the schema properties\n};\nawait walker.walk(convertSchema, walker.vocabularies.DRAFT_07);\nconst updatedSchema = walker.rootSchema;\n```\n\n## Circular references\n\nPassing the options\n\n```json\n{\n  \"dereferenceOptions\": {\n    \"dereference\": {\n      \"circular\": \"ignore\"\n    }\n  }\n}\n```\n\nwill dereference all non-circular references in your schema.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonluca%2Fjson-schema-walker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonluca%2Fjson-schema-walker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonluca%2Fjson-schema-walker/lists"}