JSON Schema - schema validation guide for Novu Framework workflow payloads
Learn how to use JSON Schema to define the workflow payload and step inputs
JSON Schema can be used to define the workflow payload and step inputs. It provides a strongly-typed way to define the structure of the data that is expected by the workflow or Step. And also as a contract for changing the workflow behaviour using the Platform User Interface.
Learn more about JSON schema at json-schema.org.
Examples
Simple
Nested array structure
Reference and reuse blocks
Any of schemas
One of schema
If then else
Enum objects
Regex validation
The following example matches a simple North American telephone number with an optional area code: