Description:
Validates the contents of FlowFiles against a configurable JSON Schema. See json-schema.org for specification standards.
Tags:
JSON, schema, validation
Properties:
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values.
| Display Name | API Name | Default Value | Allowable Values | Description |
|---|
| JSON Schema | JSON Schema | | | The content of a JSON Schema
This property requires exactly one resource to be provided. That resource may be any of the following types: text, URL, file.
|
| Schema Version | Schema Version | Draft 2020-12 | - Draft 4
 - Draft 6
 - Draft 7
 - Draft 2019-09
 - Draft 2020-12

| The JSON schema specification |
Relationships:
| Name | Description |
|---|
| valid | FlowFiles that are successfully validated against the schema are routed to this relationship |
| invalid | FlowFiles that are not valid according to the specified schema are routed to this relationship |
| failure | FlowFiles that cannot be read as JSON are routed to this relationship |
Reads Attributes:
None specified.Writes Attributes:
| Name | Description |
|---|
| json.validation.errors | If the flow file is routed to the invalid relationship , this attribute will contain the error message resulting from the validation failure. |
State management:
This component does not store state.Restricted:
| Required Permission | Explanation |
|---|
| reference remote resources | Schema configuration can reference resources over HTTP |
Input requirement:
This component requires an incoming relationship.System Resource Considerations:
| Resource | Description |
|---|
| MEMORY | Validating JSON requires reading FlowFile content into memory |