json_validation
v0.0.4
Published
json validator
Downloads
1
Readme
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.