Skip to content

Is the document to be validated loaded completely in memory #995

Answered by justin-tay
rmuller asked this question in Q&A
Discussion options

You must be logged in to vote

Yes it's completely loaded into memory with a call to Jackson's ObjectMapper.readTree. The api is such that it calls validate with the JsonNode of the current instance data and the JsonNode of the root instance data.

It's not possible to enable a streaming mode. I don't really have an idea of how you can implement this generically.

If what you have is a document with an array of objects, you could stream and process each object individually with a json schema for each object.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rmuller
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants