You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is particularly important to enable smooth upgrade paths to add new features by ensuring that post bodies that are not understood will result in errors -- so that clients can detect that certain features are not available in an implementation.
We should state this generally but also have tests for individual endpoints. For example, posting a non-empty body to start an exchange -- for an exchange that does not understand anything but an empty post body -- should result in an error.
The text was updated successfully, but these errors were encountered:
The group discussed this on the 2024-06-11 telecon:
@PatStLouis asked if this was about undefined options, or for existing options. @msporny noted that it's for both; it's for any data, option, or option value that the API endpoint does not understand or know how to process.
There were no objections to ensuring that API endpoints default to throwing errors when they receive data, options, or option values that they don't understand.
A PR needs to be raised to instruct implementers that they MUST throw errors when they receive data, options, or option values that they don't understand.
This is particularly important to enable smooth upgrade paths to add new features by ensuring that post bodies that are not understood will result in errors -- so that clients can detect that certain features are not available in an implementation.
We should state this generally but also have tests for individual endpoints. For example, posting a non-empty body to start an exchange -- for an exchange that does not understand anything but an empty post body -- should result in an error.
The text was updated successfully, but these errors were encountered: