{"id":18517423,"url":"https://github.com/willfarrell/ajv-cmd","last_synced_at":"2025-06-16T07:04:56.807Z","repository":{"id":61075612,"uuid":"544703655","full_name":"willfarrell/ajv-cmd","owner":"willfarrell","description":"Transpile JSON-Schema (.json) files to JavaScript (.js or .mjs) using ajv","archived":false,"fork":false,"pushed_at":"2025-03-12T15:23:16.000Z","size":234,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T03:23:11.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/willfarrell.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-10-03T04:28:00.000Z","updated_at":"2025-03-12T15:23:19.000Z","dependencies_parsed_at":"2024-06-19T19:05:43.582Z","dependency_job_id":"14bb03c2-6cbf-4594-8926-ab6695149c17","html_url":"https://github.com/willfarrell/ajv-cmd","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":0.1428571428571429,"last_synced_commit":"8cb1600ad896c2e9bcdbbb13179d4ea69cdebeb3"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fajv-cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fajv-cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fajv-cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fajv-cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willfarrell","download_url":"https://codeload.github.com/willfarrell/ajv-cmd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248002906,"owners_count":21031689,"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-11-06T17:03:24.665Z","updated_at":"2025-04-09T08:30:30.215Z","avatar_url":"https://github.com/willfarrell.png","language":"JavaScript","readme":"# ajv-cmd\n\nDeref, Validate, Transpile, and Test JSON-Schema (.json) files using ajv.\n\n### Setup\n\n```bash\n$ npm install -D ajv-cmd\n$ ajv --help\n```\n\nBased off of [ajv-cli](https://ajv.js.org/packages/ajv-cli.html).\n\n## Examples\n\n### Pre-transpile all handler schemas\n\n```bash\n#!/usr/bin/env bash\n\nfunction bundle {\n  ajv validate ${1} --valid \\\n\t--strict true --coerce-types array --all-errors true --use-defaults empty\n  ajv transpile ${1} \\\n\t--strict true --coerce-types array --all-errors true --use-defaults empty \\\n\t-o ${1%.json}.js\n}\n\nfor file in handlers/*/schema.*.json; do\n  if [ ! -n \"$(bundle $file | grep ' is valid')\" ]; then\n\techo \"$file failed\"\n\texit 1\n  fi\ndone\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fajv-cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillfarrell%2Fajv-cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fajv-cmd/lists"}