Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
contravariant
on May 31, 2023
|
parent
|
context
|
favorite
| on:
OpenAPI v4 (aka Moonwalk) Proposal
This way you can provide a schema for the error such that a client can parse the response. It makes sense for an API schema to include it.
eyelidlessness
on May 31, 2023
[–]
This. And it may not be immediately obvious if you’re not familiar with RFC 7807, but in the example the responses’ content types specify their schema.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: