feat(api): define public problem errors, pagination, and retry contract
This commit is contained in:
1 parent
b2f6e87bfe
commit
565ca94bbb
86 files changed
+8200
-154
No files matched your search
@@ -0,0 +1,30 @@
|
||||
Problem:
|
||||
description: >-
|
||||
Any error response. The body is a Problem whose `status` equals the HTTP
|
||||
status and whose `code` is one of ProblemCode.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
validation_failed:
|
||||
summary: Request parameters do not match the contract
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
errors:
|
||||
- in: query
|
||||
pointer: /limit
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
internal:
|
||||
summary: Unexpected server error
|
||||
value:
|
||||
type: urn:lincodex:problem:internal
|
||||
title: Internal server error
|
||||
status: 500
|
||||
code: internal
|
||||
detail: The server could not complete the request.
|
||||
Reference in new issue
Block a user