ChrisSamo632 commented on PR #7782:
URL: https://github.com/apache/nifi/pull/7782#issuecomment-1732315411

   > The problem though without my change the ObjectMapper only reads the first 
object in the incoming file and validates against that. I wouldn't think that 
is the correct behavior either.
   
   So what we could do with is some sort of `ValidateJsonRecord` then, i.e. use 
a `JsonTreeReader` to iterate through all JSON Objects within a FlowFile, then 
validate each of those and output the results. `ValidateRecord` would be a 
pattern to consider following here, just that we'll be applying the JSON Schema 
validation rather than the Avro Schema validation currently used by 
`ValidateRecord`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to