From 66b68140e2303dd77d70c6dcb597ed35adf0841b Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Fri, 22 Sep 2023 17:56:27 +0000 Subject: [PATCH] NIFI-12116 Documented lack of NDJSON support in ValidateJson This closes #7782 Signed-off-by: David Handermann --- .../org/apache/nifi/processors/standard/ValidateJson.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ValidateJson.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ValidateJson.java index c5aa5dc12b..25b1499135 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ValidateJson.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ValidateJson.java @@ -65,7 +65,10 @@ import java.util.Set; @WritesAttribute(attribute = ValidateJson.ERROR_ATTRIBUTE_KEY, description = "If the flow file is routed to the invalid relationship " + ", this attribute will contain the error message resulting from the validation failure.") }) -@CapabilityDescription("Validates the contents of FlowFiles against a configurable JSON Schema. See json-schema.org for specification standards.") +@CapabilityDescription("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." +) @SystemResourceConsideration(resource = SystemResource.MEMORY, description = "Validating JSON requires reading FlowFile content into memory") @Restricted( restrictions = {