3 ms·
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.
by contravariant 3y ago
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 3y agoThis. 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.