{"id":19951397,"url":"https://github.com/grimen/node-document-validator","last_synced_at":"2025-08-22T06:45:35.002Z","repository":{"id":6217155,"uuid":"7448417","full_name":"grimen/node-document-validator","owner":"grimen","description":"Validator adapter interface for `node-document` ODM for Node.js.","archived":false,"fork":false,"pushed_at":"2013-11-29T13:38:04.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T17:53:28.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.org/package/node-document-validator","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/grimen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-04T22:35:50.000Z","updated_at":"2013-11-29T13:38:06.000Z","dependencies_parsed_at":"2022-07-25T05:32:02.324Z","dependency_job_id":null,"html_url":"https://github.com/grimen/node-document-validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimen%2Fnode-document-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimen%2Fnode-document-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimen%2Fnode-document-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimen%2Fnode-document-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grimen","download_url":"https://codeload.github.com/grimen/node-document-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241381520,"owners_count":19953749,"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-13T01:07:53.112Z","updated_at":"2025-03-01T14:43:49.143Z","avatar_url":"https://github.com/grimen.png","language":"JavaScript","readme":"# NODE-DOCUMENT-VALIDATOR [![Build Status](https://secure.travis-ci.org/grimen/node-document-validator.png)](http://travis-ci.org/grimen/node-document-validator)\n\n**Validator** adapter interface for [node-document](https://github.com/grimen/node-document) ODM for Node.js.\n\n## About\n\nUnified interface for validating data based on a custom JSON Schema.\n\n\n## Adapters\n\n* [Amanda](https://github.com/grimen/node-document-validator-amanda)\n* [Schema.js](https://github.com/grimen/node-document-validator-schema)\n* [JSONGate](https://github.com/grimen/node-document-validator-jsongate)\n* [JSONSchema](https://github.com/grimen/node-document-validator-jsonschema)\n* [JSV](https://github.com/grimen/node-document-validator-jsv)\n\n\n## API\n\n### `#validate`\n\n* `(data, schema, [callback(err, res)])`\n\n    ```javascript\n    validator.validate({foo: 'bar'}, {foo: {type: 'string', required: true}}, function(err, res) {\n      // console.log(arguments);\n    });\n    ```\n\n\n## Installation\n\n```shell\n  $ npm install node-document-validator\n```\n\n\n## Usage\n\nFor details; see [node-document](https://github.com/grimen/node-document).\n\n\n## Test\n\n**Local tests:**\n\n```shell\n  $ make test\n```\n\n\n## License\n\nReleased under the MIT license.\n\nCopyright (c) [Jonas Grimfelt](http://github.com/grimen)\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/grimen/node-document-validator/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrimen%2Fnode-document-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrimen%2Fnode-document-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrimen%2Fnode-document-validator/lists"}