Integrating schemas in the flow

In the last community meeting I mentioned about integrating schemas in the data management of n8n as an experiment. The case scenario is for compliance and data usage transparency.

Without getting into details right now, would it be theoretically possible to:

  • Have an interface UI (unclear if separated or as part of the modules themselves) that allows for configuring a given schema to a result set (say JSON for the purpose of this scenario)?
  • Allow using the resulting data structure using the field names in the schema
  • Generate an extra output from the nodes that logs all usage made in each of them

Let’s leave it at that for the time being.
Thoughts?

Hey @JFQueralt,

Sorry for the delay in the response.

  • Have an interface UI (unclear if separated or as part of the modules themselves) that allows for configuring a given schema to a result set (say JSON for the purpose of this scenario)?

Won’t the Set node be useful for this? You can use it to define the schema that you want to pass on to the next nodes.

  • Allow using the resulting data structure using the field names in the schema

Do you want to refer to the fields directly, without using the Expression?

  • Generate an extra output from the nodes that logs all usage made in each of them

What usage logs do you think will be helpful here?