ValidateJson 2.0.0

Bundle
org.apache.nifi | nifi-standard-nar
Description
Validates the contents of FlowFiles against a configurable JSON Schema. See json-schema.org for specification standards. This Processor does not support input containing multiple JSON objects, such as newline-delimited JSON. If the input FlowFile contains newline-delimited JSON, only the first line will be validated.
Tags
JSON, schema, validation
Input Requirement
REQUIRED
Supports Sensitive Dynamic Properties
false
Properties
System Resource Considerations
Resource Description
MEMORY Validating JSON requires reading FlowFile content into memory
Restrictions
Required Permission Explanation
reference remote resources Schema configuration can reference resources over HTTP
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
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.