Skip to content

Commit 120e5db

Browse files
authored
feat(common): improve problem schema (#41)
1 parent f1c9326 commit 120e5db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

common.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ components:
1414
type: string
1515
format: uri
1616
description: A URI reference that identifies the problem type.
17+
example: https://developer.sumup.com/problem/not-found
1718
title:
1819
type: string
1920
description: A short, human-readable summary of the problem type.
21+
example: Requested resource couldn't be found.
2022
status:
2123
type: integer
2224
description: The HTTP status code generated by the origin server for this occurrence of the problem.
23-
minimum: 400
24-
maximum: 600
25-
exclusiveMaximum: true
26-
example: 400
25+
example: 404
2726
detail:
2827
type: string
2928
description: A human-readable explanation specific to this occurrence of the problem.
29+
example: The requested resource doesn't exist or does not belong to you.
3030
instance:
3131
type: string
3232
format: uri

0 commit comments

Comments
 (0)