json_validation
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Use this validator to validate any object against a JSON schema

#CLI command line package usage: npm run test -- [-I ] -d -s [[additional schema] ...]

additional schema do not have to be specified on the command line if the search folders contain the schemas referenced by the applied schema currently supported file types are .json and .toml, which are parsed into typescript objects and tested against the json schema.

#RUNTIME for runtime usage, see the index.ts example.

#TODO: allow using RockIt.Asset to serve files write tests! console logging -> logging system

#VALIDATOR Uses the JaySchema validator. This package seems to give the best error reporting of those tested.

#Error usage For all errors returned: 'instanceContext' is the source of the problem.
'desc' is the plaintext description of the issue.

Specific errors may have additional properties.

Readme

Keywords

none

Package Sidebar

Install

npm i json_validation

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • vrachels