pboettch / json-schema-validator

JSON schema validator for JSON for Modern C++
Other
466 stars 134 forks source link

Inefficient iterative validation and patch #232

Open didier-brizet opened 1 year ago

didier-brizet commented 1 year ago

The iterative method, that repeats the validation of a document to generate a patch composed of some default values from the schema, then applying of the patch and so on until the returned patch was empty, is inefficient on large and deep document and/or schema.

A new method is needed to in-place patch the validated JSON document to achieve the same result as the iterative method but with less execution time.

xamix commented 1 year ago

Nice feature to have I was looking for exactly that in order to be more efficient in creating default values