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
I think if the spec intends Error to be optionally returned for any error case it needs to be reworked. This is the language:
Service Brokers can include a user-facing message in the description field;
There is no spec language in that sentence, like MAY, and it is unclear is the broker author is allowed to return the description field for any responses or just for responses that call out they return errors.
The confusion happens when the spec says The expected response body is {}. This is redundant and unclear.
We should simplify errors to say they MAY always send error and description for all errors and remove the special cases for special errors.
The text was updated successfully, but these errors were encountered:
I agree @n3wscott - anytime an API error occurs, brokers should be able to return the same error object. This is much more straightforward for platforms to understand.
I know we have the openapi changes for this in #389. We should make a sweeping change to spec.md too to clarify this if everyone agrees this is sensible.
I think if the spec intends Error to be optionally returned for any error case it needs to be reworked. This is the language:
There is no spec language in that sentence, like MAY, and it is unclear is the broker author is allowed to return the description field for any responses or just for responses that call out they return errors.
The confusion happens when the spec says
The expected response body is {}
. This is redundant and unclear.We should simplify errors to say they MAY always send
error
anddescription
for all errors and remove the special cases for special errors.The text was updated successfully, but these errors were encountered: