-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adopt RFC9457 `application/problem+json` * require 422 with that media type for put, post, and patch
- Loading branch information
Showing
19 changed files
with
97 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"application/problem+json": | ||
schema: | ||
$ref: ../../schemas/problem.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
description: Unprocessable Content | ||
headers: | ||
$ref: ../headers/rate-limited.yaml | ||
content: | ||
$ref: ../responses/content/problem.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
description: See [RFC9457](https://www.rfc-editor.org/rfc/rfc9457#appendix-A). | ||
type: object | ||
properties: | ||
type: | ||
allOf: | ||
- $ref: ./uri-reference.yaml | ||
- description: | | ||
A URI reference that identifies the problem type. | ||
See [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457#name-type) | ||
example: "https://iana.org/assignments/http-problem-types#date" | ||
title: | ||
allOf: | ||
- $ref: ./description.yaml | ||
- description: | | ||
A short, human-readable summary of the problem type. | ||
See [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457#name-title) | ||
status: | ||
type: number | ||
minimum: 100 | ||
maximum: 599 | ||
description: | | ||
The HTTP status code generated by the origin server for this occurrence of the problem. | ||
See [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457#name-status) | ||
detail: | ||
allOf: | ||
- $ref: ./description.yaml | ||
- description: | ||
A human-readable explanation specific to this occurrence of the problem. | ||
See [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457#name-detail) | ||
|
||
instance: | ||
allOf: | ||
- $ref: ./uri-reference.yaml | ||
- description: | | ||
A URI reference that identifies the specific occurrence of the problem. | ||
It may or may not yield further information if dereferenced. | ||
See [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457#name-status) | ||
required: [ type ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type: string | ||
format: "uri-reference" | ||
maxLength: 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters