JSON schema for a valid flow?

I'd love to validate a custom flow file against a JSON schema.
I assume there is likely one for a generic flow already, right?
If that's true, can anyone please point me where it is?

Not that I know of.

It is easy enough to generate a schema (manually or using online schema from json tools)

Note though: every node has a different set of properties so your schema will need to be quite relaxed or quite complex. In fact, the only absolutely required properties are id & type (both are strings)

e.g: The below is a perfectly valid flow...

  { "id": "n1", "type": "inject" },
  { "id": "n2", "type": "function" },
  { "id": "n3", "type": "debug" }

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.