-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agency error and bulk responses #856
Comments
Hi @marie-x and @avatarneil do you have some thoughts on this you can share today? |
I'll schedule time with @avatarneil to discuss this morning (Tue 2 May) |
Here's what I came up with for errors needing Bulk Responses, I'm implementing in the OpenAPI as a starting point but we can always adjust if needed: Sorted by endpoint
Sorted by Error key
|
I think the final question on this is for {
"error": "...",
"error_description": "...",
"error_details": ["...", "..."]
} |
I've made a pass across all APIs to align each endpoint to the responses listed in this comment and in the current OpenAPI and Stoplight docs. Take a look at the release branch to confirm. Example of how I documented it - see the 'Responses' header. I did not address the |
|
It sounds like would want to update the |
Fixed the 500 response type/schema across all OpenAPI endpoints in openmobilityfoundation/mds-openapi#37 |
I think this issue can be closed after the one-line update in the spec around 500 response type. |
Nice! Thanks! |
Alright updated the language here: 0018992 (and then fixed "a" to "an"). |
This is related to #852 but different enough that I wanted to open a new issue.
Agency references the general
Error Messages
andBulk Responses
- these describe JSON structures for what succeeded and what failed for a given request. I think this originated in #796 around this commit: 1f4d197It seems clear that a successful registration/update in an Agency endpoint should return a
Bulk Response
. #852 is asking which code to use between200
vs201
.I'm not as clear on which codes and in what situations either a singular JSON
Error Message
or a larger JSONBulk Response
(withfailures
) should be returned?500
The Responses table for
500
says:It seems like the (JSON)
Error Message
orBulk Response
should not be used here, since the content type istext/plain
. Is that correct?Or should the language around 500 be updated to allow JSON? Would it return
Error Message
forGET
andBulk Response
forPOST
/PUT
?409
The Responses table for
409
says:This seems like a case for using a
Bulk Response
- but only forPOST
? MDN says409
is more common withPUT
.I also see from the linked commit/PR above that
409
was previously the code associated with these error responses in the Agency docs.406
,404
, and401
These codes don't really make sense to use with
Error Messages
orBulk Responses
, no body content is returned with these.400
Maybe? But then 400 is not referenced in any of the Agency docs, only in the General Info Responses table.
The text was updated successfully, but these errors were encountered: