{"id":28770991,"url":"https://github.com/thedumbterminal/jsonschema-avro","last_synced_at":"2025-09-13T03:42:26.179Z","repository":{"id":21750299,"uuid":"93930373","full_name":"thedumbterminal/jsonschema-avro","owner":"thedumbterminal","description":"Convert JSON-Schema into Avro","archived":false,"fork":false,"pushed_at":"2024-11-04T01:36:54.000Z","size":658,"stargazers_count":22,"open_issues_count":5,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-17T13:08:56.470Z","etag":null,"topics":["avro","json-schema","node-js","node-module","nodejs","nodejs-module","nodejs-modules"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thedumbterminal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-06-10T09:52:31.000Z","updated_at":"2024-10-29T22:12:19.000Z","dependencies_parsed_at":"2024-03-03T18:25:45.695Z","dependency_job_id":"fc12a694-6ed8-4e50-a119-9da25efd32e1","html_url":"https://github.com/thedumbterminal/jsonschema-avro","commit_stats":{"total_commits":125,"total_committers":7,"mean_commits":"17.857142857142858","dds":0.5680000000000001,"last_synced_commit":"5213e5b85f2917992759a1052c9451a512a0d0ee"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/thedumbterminal/jsonschema-avro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbterminal%2Fjsonschema-avro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbterminal%2Fjsonschema-avro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbterminal%2Fjsonschema-avro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbterminal%2Fjsonschema-avro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedumbterminal","download_url":"https://codeload.github.com/thedumbterminal/jsonschema-avro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbterminal%2Fjsonschema-avro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265837608,"owners_count":23836558,"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":["avro","json-schema","node-js","node-module","nodejs","nodejs-module","nodejs-modules"],"created_at":"2025-06-17T13:08:56.333Z","updated_at":"2025-07-25T18:40:47.907Z","avatar_url":"https://github.com/thedumbterminal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonschema-avro\n\n[![npm](https://img.shields.io/npm/v/jsonschema-avro.svg)](https://www.npmjs.com/package/jsonschema-avro)\n[![Node.js CI](https://github.com/thedumbterminal/jsonschema-avro/actions/workflows/main.yml/badge.svg)](https://github.com/thedumbterminal/jsonschema-avro/actions/workflows/main.yml)\n\nConverts JSON-schema definitions into Avro definitions.\n\n## Install\n\n    npm install jsonschema-avro\n\n## Consume\n\n```\nconst jsonSchemaAvro = require('jsonschema-avro')\n\nconst inJson = {\n  \"description\": \"Example description\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"first_name\": { \"type\": \"string\" },\n    \"address\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"street_address\": { \"type\": \"string\" }\n      }\n    }\n  }\n}\n\nconst avro = jsonSchemaAvro.convert(inJson)\n```\n\nPlease ensure that the input JSON schema is dereferenced so that all external references have been resolved. [json-schema-ref-parser](https://www.npmjs.com/package/@apidevtools/json-schema-ref-parser) can do this, prior to using this module.\n\n## Develop\n\nAvro schema documentation can be found here:\n\nhttps://docs.oracle.com/cd/E26161_02/html/GettingStartedGuide/avroschemas.html\n\n### Testing\n\nTo run all tests:\n\n    npm test\n\nTo run a single test, using the name of the sample:\n\n    ONLY=optional npm test\n\nCI uses the following script:\n\n```\nnpm run ci\n```\n\nPlease run this on your local machine to ensure CI will pass.\n\n### Code style\n\nThis project uses prettier, to format source files run:\n\n    npm run format\n\nPlease keep the integration tests to a single test per file for readability.\n\n## TODO\n\n- Handle `anyOf` and `allOf`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedumbterminal%2Fjsonschema-avro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedumbterminal%2Fjsonschema-avro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedumbterminal%2Fjsonschema-avro/lists"}