[JEP-14a] Clarified error type precedence. #157
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See jmespath.test/#28.
This PR brings the following changes:
_Each function signature declares the types of its input parameters. If any type constraints are not met, implementations must indicate that an `invalid-type` error occurred. **If a function parameter accepts values constrained to a specific subset of a type and those constraints are not met, implementations must report - that an `invalid-value` error occurred.**_ + that an `invalid-value` error occurred. How and when those errors are raised is implementation specific.**_ + _The [initial version of this JEP](./jep-014-string-functions.md) had a provision stating that_ “How and when those + errors are raised is implementation specific”. _This provision has been removed. Implementation must perform + type-checking for all function parameters_ before _attempting to evaluate the set of valid values for a given type._