{"id":37016832,"url":"https://github.com/campudus/vertx-tiny-validator4","last_synced_at":"2026-01-14T01:55:09.196Z","repository":{"id":31159751,"uuid":"34719854","full_name":"campudus/vertx-tiny-validator4","owner":"campudus","description":"JSON Schema draft 4 validator using the tv4 npm module","archived":false,"fork":false,"pushed_at":"2015-04-30T10:09:53.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-03-26T16:25:35.990Z","etag":null,"topics":["outdated"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/campudus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-28T08:59:07.000Z","updated_at":"2024-03-26T16:25:35.991Z","dependencies_parsed_at":"2022-08-24T13:38:22.539Z","dependency_job_id":null,"html_url":"https://github.com/campudus/vertx-tiny-validator4","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/campudus/vertx-tiny-validator4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/campudus%2Fvertx-tiny-validator4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/campudus%2Fvertx-tiny-validator4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/campudus%2Fvertx-tiny-validator4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/campudus%2Fvertx-tiny-validator4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/campudus","download_url":"https://codeload.github.com/campudus/vertx-tiny-validator4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/campudus%2Fvertx-tiny-validator4/sbom","scorecard":{"id":263936,"data":{"date":"2025-08-11","repo":{"name":"github.com/campudus/vertx-tiny-validator4","commit":"f5b9ff05e6a5fa482af6b515e523e4c4661cfc20"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T11:29:21.646Z","repository_id":31159751,"created_at":"2025-08-17T11:29:21.646Z","updated_at":"2025-08-17T11:29:21.646Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["outdated"],"created_at":"2026-01-14T01:55:08.717Z","updated_at":"2026-01-14T01:55:09.188Z","avatar_url":"https://github.com/campudus.png","language":"JavaScript","readme":"# vertx-tiny-validator4\n\nVert.x module to validate JSON against a [json-schema](http://json-schema.org/) [draft v4](http://json-schema.org/latest/json-schema-core.html).\n\nUse [json-schema](http://json-schema.org/) [draft v4](http://json-schema.org/latest/json-schema-core.html) to validate simple values and complex objects using a rich [validation vocabulary](http://json-schema.org/latest/json-schema-validation.html) ([examples](http://json-schema.org/examples.html)).\n\nThis module relies heavily on [Tiny Validator (for v4)](https://github.com/geraintluff/tv4) which is written in javascript.\n\n## Requirements\n\n* Vert.x 2.1.x\n* Vert.x lang-js (lang-rhino)\n\n## Requirements for testing\n\nTests are written in Scala. Therefore you need Vert.x lang-scala.\n\n## Installation\n\n`vertx install com.campudus~vertx-tiny-validator4~1.0.0`\n\n## Configuration\n\n    {\n      \"address\" : \u003cevent-bus-address-to-listen-on\u003e,\n      \"schemas\" : [{\"key\" : \u003ckeyForYourJsonSchema\u003e, \"schema\" : \u003cyourJsonSchema\u003e},{\"key\" : \u003ckeyForYourJsonSchema\u003e, \"schema\" : \u003cyourJsonSchema\u003e}]\n    }\n\n* `address` - The address this module should register on the event bus. Defaults to `campudus.jsonvalidator`\n* `schemas` - This is an Array of schemas which are available to check against. Every schema in this Array is described by a JsonObject which should look like following:\n\n\n    {\n      \"key\" : \u003ckeyForYourJsonSchema\u003e,\n      \"schema\" : \u003cyourJsonSchema\u003e\n    }\n\n\n* `key` - This is a key for this schema which is later used to define which schema should be used to check your JSON against. The key is a must have. If you don't define a key, you cant't deploy the module.\n* `schema` - This is the JsonSchema Object which describes your JsonSchema (see http://json-schema.org/)\n\n### Example Configuration\n    {\n      \"schemas\" : [\n        {\n          \"key\" : \"simple_schema\",\n          \"schema\" : {\n            \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n            \"title\": \"Example Schema\",\n            \"type\": \"object\",\n            \"properties\": {\n              \"firstName\": {\n                \"type\": \"string\"\n              },\n              \"lastName\": {\n                \"type\": \"string\"\n              },\n              \"age\": {\n                \"description\": \"Age in years\",\n                \"type\": \"integer\",\n                \"minimum\": 0\n              }\n            },\n            \"required\": [\"firstName\", \"lastName\"]\n          }\n        }\n      ]\n    }\n\n## Usage\nCurrently there are three commands for this module.\n\n### Validate Json\n\nUse this action to validate a Json against a JsonSchema.\n\n    {\n      \"action\" : \"validate\",\n      \"key\" : \"simple_schema\",\n      \"json\" : {\n        \"firstName\" : \"Hans\",\n        \"lastName\" : \"Dampf\"\n      }\n    }\n\n* `action` - Always `validate` for validating a Json\n* `key` - The key to the JsonSchema to validate against\n* `json` - The Json which should be validated\n\n### Get all schema keys\n\nUse this action to get all registered schema keys\n\n    {\n      \"action\" : \"getSchemaKeys\",\n    }\n\n### Add new JsonSchema\n\nUse this action to add a new JsonSchema.\n\n    {\n      \"action\" : \"addSchema\",\n      \"key\" : \"simpleAddSchema\",\n      \"jsonSchema\" : {\n        \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n        \"title\": \"Example Schema\",\n        \"type\": \"object\",\n        \"properties\": {\n          \"firstName\": {\n            \"type\": \"string\"\n          },\n          \"lastName\": {\n            \"type\": \"string\"\n          },\n            \"age\": {\n              \"description\": \"Age in years\",\n              \"type\": \"integer\",\n              \"minimum\": 0\n            }\n          },\n          \"required\": [\"firstName\", \"lastName\"]\n        }\n      }\n    }\n    \n* `action` - Always `addSchema` for add a new JsonSchema\n* `key` - The key for the new JsonSchema\n* `jsonSchema` - The JsonSchema which should be added\n\n### Referencing in a Json schema\nIn a Json schema it is possible to reference to a schema defined by an URI. This module does **not** support the natively supported schemes from the underlying Java library.\nThis is because the Java library is using blocking code, which can't be used in a vertx module.\n\nAlthough this module offers to reference to schemas which are already added through the config or with the `addSchema` command.\nTo do this you have to use `vertxjsonschema://` followed by the key of the schema as the URI. Here is a short example on how this works:\n\nFirst add a schema which should be referenced later (either within the config or with the `addSchema` command). I used `addSchema` here:\n\n    {\n      \"action\" : \"addSchema\",\n      \"key\" : \"geoschema\",\n      \"description\": \"A geographical coordinate\",\n      \"type\": \"object\",\n      \"properties\": {\n        \"latitude\": { \"type\": \"number\" },\n        \"longitude\": { \"type\": \"number\" }\n      },\n      \"required\": [\"latitude\", \"longitude\"]\n    }\n    \nAfter that you can reference to this schema like following:\n\n    {\n      \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n      \"title\": \"Example Schema\",\n      \"type\": \"object\",\n      \"properties\": {\n        \"person\": {\n          \"type\" : \"object\",\n          \"properties\": {\n            \"location\" : {\n              \"$ref\": \"vertxjsonschema://geoschema\"\n            },\n            \"job\": {\n              \"type\": \"string\"\n            }\n          }\n        }\n      }\n    }\n\n### Reply messages\nThe module will reply to all requests.  In the message, there will be either a `\"status\" : \"ok\"` or a `\"status\" : \"error\"`.\n\n#### Reply to `validate` action\nIf the request could be processed without problems, it will result in an \"ok\" status. See an example here:\n\n    {\n      \"status\" : \"ok\",\n    }\n\nIf the request resulted in an error, a possible reply message looks like this:\n\n    {\n      \"status\" : \"error\",\n      \"error\" : \u003cERROR_KEY\u003e,\n      \"message\" : \u003cERROR_MESSAGE\u003e,\n      \"report\" : \u003cVALIDATION_REPORT\u003e\n    }\n\n* `error` - Possible error keys are: `MISSING_JSON` `INVALID_SCHEMA_KEY` `MISSING_SCHEMA_KEY` `VALIDATION_ERROR` `VALIDATION_PROCESS_ERROR` `INVALID_JSON`\n* `message` - The message which describes the error\n* `report` - This field is only present when the validation failed. A report can look like (see https://github.com/fge/json-schema-validator):\n\n\n    [ {\n      \"level\" : \"error\",\n      \"schema\" : {\n        \"loadingURI\" : \"#\",\n        \"pointer\" : \"\"\n      },\n      \"instance\" : {\n        \"pointer\" : \"\"\n      },\n      \"domain\" : \"validation\",\n      \"keyword\" : \"required\",\n      \"message\" : \"missing required property(ies)\",\n      \"required\" : [ \"firstName\", \"lastName\" ],\n      \"missing\" : [ \"lastName\" ]\n    } ]\n\n\n#### Reply to `getSchemaKeys` action\nThe request will result in an \"ok\" status and a JsonArray `schemas` with the schema keys. See an example here:\n\n    {\n      \"status\" : \"ok\",\n      \"schemas\" : [\"simple_schema\", \"complex_schema\"]\n    }\n\n#### Reply to `addSchema` action\n\nIf the request could be processed without problems, it will result in an \"ok\" status. See an example here:\n\n    {\n      \"status\" : \"ok\",\n    }\n\nIf the request resulted in an error, a possible reply message looks like this:\n\n    {\n      \"status\" : \"error\",\n      \"error\" : \u003cERROR_KEY\u003e,\n      \"message\" : \u003cERROR_MESSAGE\u003e\n    }\n\n* `error` - Possible error keys are: `EXISTING_SCHEMA_KEY` `INVALID_SCHEMA` `MISSING_JSON` `MISSING_SCHEMA_KEY`\n* `message` - The message which describes the error\n\n## Licence\n\nThis project is freely available under the Apache 2 licence, fork, fix and send back :)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcampudus%2Fvertx-tiny-validator4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcampudus%2Fvertx-tiny-validator4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcampudus%2Fvertx-tiny-validator4/lists"}