{"id":48372706,"url":"https://github.com/xibitdigital/json-schema-util","last_synced_at":"2026-04-05T17:05:03.440Z","repository":{"id":57285231,"uuid":"99948945","full_name":"xibitdigital/json-schema-util","owner":"xibitdigital","description":"JSON schema validator utility","archived":false,"fork":false,"pushed_at":"2017-08-10T17:59:06.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-29T07:57:31.612Z","etag":null,"topics":["json-schema","nodejs","validation"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/xibitdigital.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}},"created_at":"2017-08-10T17:31:19.000Z","updated_at":"2017-08-14T18:29:08.000Z","dependencies_parsed_at":"2022-09-17T14:01:19.487Z","dependency_job_id":null,"html_url":"https://github.com/xibitdigital/json-schema-util","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xibitdigital/json-schema-util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xibitdigital%2Fjson-schema-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xibitdigital%2Fjson-schema-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xibitdigital%2Fjson-schema-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xibitdigital%2Fjson-schema-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xibitdigital","download_url":"https://codeload.github.com/xibitdigital/json-schema-util/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xibitdigital%2Fjson-schema-util/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31226589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-31T07:44:08.530Z","status":"ssl_error","status_checked_at":"2026-03-31T07:44:01.632Z","response_time":111,"last_error":"SSL_read: 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":["json-schema","nodejs","validation"],"created_at":"2026-04-05T17:05:01.335Z","updated_at":"2026-04-05T17:05:03.435Z","avatar_url":"https://github.com/xibitdigital.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON schema util\nThis is a utility to validate data against a JSON schema.\n\n# example\n```js\nconst {validate} = require('json-schema-util');\n\n// set a json schema\nconst schema = {\n  type: \"object\",\n  properties: {\n    testNum: {\n      type: \"number\"\n    },\n    testString: {\n      type: \"string\"\n    }\n  }\n};\n```\n\nValidation success:\n```js\nconst data = { testNum: 1 };\nconst res = validate(data, schema);\n\nconsole.log(res.isValid) // true\n```\n\nValidation error:\n```js\nconst data = { testNum: 'a', testString: 1 };\nconst res = validate(data, schema);\n\nconsole.log(res.isValid) // false\nconsole.log(res.errors)  // {isValid: false, errors: {{ value: 'a', property: 'tesnNum', message: '...'}}};\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxibitdigital%2Fjson-schema-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxibitdigital%2Fjson-schema-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxibitdigital%2Fjson-schema-util/lists"}