Open
Description
It would be great if on top of transforming data, Jsonata was also able to transform the schema of the data.
I have been experimenting a little bit, and it is fairly straight forward to re-use the same AST but to modify the evaluation function to work on a Json Scheme instead of a Json payload.
we would then have:
expression -> AST
evaluateJson(AST, jsonInput) -> jsonOutput
evaluateSchema(AST, jsonSchemaInput) -> jsonSchemaOutput