Thursday, 27 April 2017

Generating new JSON schema from previous JSON schema after jsonschema validation errors

Currently I have a JSON Schema. I am validating it with document.json (which is a json document and contains real data). I am doing the validation with the help of "jsonschema" package in node.js. After the validation, I want to create new JSON Schema which will contain the previous JSON Schema and the attributes that were in document.json but were not present in original JSON Schema.Currently what I do is look for validation errors after I validate the json schema and document.json and based on those validation errors I create new JSON Schema.

My Question is that, if there is some package which can help me automatically create new json schema based on validation errors?

Thanks in advance!



via bilal khan

No comments:

Post a Comment