You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ChrisSamo632 (via GitHub)" <gi...@apache.org> on 2023/09/23 13:10:14 UTC

[GitHub] [nifi] ChrisSamo632 commented on pull request #7782: NIFI-12116 Configured ObjectMapper to not allow multiline JSON.

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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org