{"id":20460968,"url":"https://github.com/ericgj/json-schema-suite","last_synced_at":"2025-08-03T14:14:12.531Z","repository":{"id":11187997,"uuid":"13567405","full_name":"ericgj/json-schema-suite","owner":"ericgj","description":"JSON Schema tools suite","archived":false,"fork":false,"pushed_at":"2014-01-24T00:36:04.000Z","size":315,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T06:15:31.478Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericgj.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2013-10-14T16:59:52.000Z","updated_at":"2016-02-24T08:17:48.000Z","dependencies_parsed_at":"2022-08-31T05:00:39.254Z","dependency_job_id":null,"html_url":"https://github.com/ericgj/json-schema-suite","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fjson-schema-suite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fjson-schema-suite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fjson-schema-suite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fjson-schema-suite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericgj","download_url":"https://codeload.github.com/ericgj/json-schema-suite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670434,"owners_count":21142904,"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-15T12:22:39.741Z","updated_at":"2025-04-13T06:15:38.402Z","avatar_url":"https://github.com/ericgj.png","language":"JavaScript","readme":"\n# json-schema-suite\n\n  JSON Schema components bundled for easy use.\n\n  - Configures Schema with validation and hyperlink plugins.\n  \n  - Configures the Agent to use [visionmedia/superagent][superagent] as the\n    underlying http client.\n\n  - Exposes Agent, as well as Schema and Validator for further configuration.\n\n\n## Installation\n\n__component__:\n\n    $ component install ericgj/json-schema-suite\n\n__npm__:\n\n    $ npm install json-schema-suite\n\n__browser standalone__:\n\n  Include `build.js` or `build.min.js` in a script tag.\n  This will give you a `window.jsonSchema` global.\n  If you would prefer a different global, clone this repo and rebuild like:\n\n    $ component install\n    $ component build --standalone myGlobal\n\n  Then move the `build/build.js` file into your project.\n\n\n## Examples\n\n  ```javascript\n\n  var suite = require('json-schema-suite')\n\n  // Simple validation\n  // see json-schema-valid for more details\n\n  var validator = new suite.Validator()\n\n  validator.validateRaw(schema,instance); // boolean\n  validator.error();   // validation error(s) wrapped in error object\n\n\n  // HTTP correlation\n\n  var agent = new suite.Agent()\n\n  agent.get('/api', function(err,correlation){\n\n    // validation\n    correlation.once('error', function(e){\n      console.error(e);\n    })\n\n    if (correlation.validate()) {\n      //...\n    }\n\n    \n    // follow resolved links in correlations\n    agent.follow( correlation.rel('instances'), function(){\n      //...\n    });\n\n  })\n\n  ```\n\n## API\n\nSee [json-schema-agent][agent], [json-schema-valid][valid],\n[json-schema-core][core] for details.\n\n## Running tests\n\n### In browser\n\n  ```sh\n  $ node test/server.js\n  ```\n  And browse `http://localhost:3000`.\n\n### In node\n\n  ```sh\n  $ node test/server.js \u0026\n  $ npm test\n  ```\n\n## License\n\n  MIT\n\n\n[agent]: https://github.com/ericgj/json-schema-agent\n[valid]: https://github.com/ericgj/json-schema-valid\n[core]: https://github.com/ericgj/json-schema-core\n[superagent]: https://github.com/visionmedia/superagent\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fjson-schema-suite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericgj%2Fjson-schema-suite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fjson-schema-suite/lists"}