Consider adding a runtime 'error()' function #164
Replies: 2 comments 1 reply
-
User-defined runtime errors
AbstractThis JEP proposes a new function MotivationAFAIK, there is no dedicated function to raise a runtime error within a JMESpath expression. SpecificationAdd a new RationaleSuppose we have the following JSON documents: { "id": "eth0", "status": "up" }
{ "id": "eth1", "status": "down" } In this example, the values of
Other options that have been considered
Implementation NotesAre there any details that implementers should try to follow? |
Beta Was this translation helpful? Give feedback.
-
For the record, one of my concerns was with this sentence int the spec:
But it appears this proposal will not violate this part. |
Beta Was this translation helpful? Give feedback.
-
@sebastien-rosset proposes a new
error()
function that will fail the evaluation with runtime errors.Beta Was this translation helpful? Give feedback.
All reactions