oscerd commented on PR #31259:
URL: https://github.com/apache/camel/pull/31259#issuecomment-7374463165

   Thanks for the review, all three points are addressed in 76d40621dab6 (main 
is merged in as well, the generated metadata conflicted on the version bump).
   
   - **Static entities:** `entitiesResource` is checked now too. The entities 
document goes through the same check before the entities are made from it, so a 
number with a fractional part fails the load: the start fails, and a reload 
keeps the active revision, through the existing catch. Covered by 
`fractionalStaticEntityAttributeFailsLoadAndKeepsActiveRevision`, next to the 
reload test, and described in the `entitiesResource` option and in the 4.25 
upgrade note.
   - **Wording:** the `context` description, the new `entitiesResource` 
sentence and the upgrade note say "truncated".
   - **Single parse:** the static entities and the provider entities share one 
helper that reads the JSON once. The tree that is checked is the tree the 
entities are bound from, with the Cedar Java object mapper, as `Entities.parse` 
does on the text. An empty or `null` document is rejected explicitly, with a 
test (`emptyEntitiesJsonIsRejected`).
   
   The camel-cedar test suite passes with the change.
   
   _Claude Code on behalf of oscerd_
   


-- 
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