Skip to content

Feature: Jsonata json type inference #690

Open
@rmanibus

Description

@rmanibus

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions