メインコンテンツまでスキップ

Appendix A. JSON Schema for HTTP Problems (HTTP 問題の JSON スキーマ)

このセクションは, HTTP 問題詳細の非規範的な JSON Schema [JSON-SCHEMA] を示します。これと仕様のテキストとの間に不一致がある場合は, 後者が優先されます。

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "An RFC 7807 problem object",
"type": "object",
"properties": {
"type": {
"type": "string",
"format": "uri-reference",
"description": "A URI reference that identifies the problem type."
},
"title": {
"type": "string",
"description": "A short, human-readable summary of the problem type."
},
"status": {
"type": "integer",
"description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
"minimum": 100,
"maximum": 599
},
"detail": {
"type": "string",
"description": "A human-readable explanation specific to this occurrence of the problem."
},
"instance": {
"type": "string",
"format": "uri-reference",
"description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced."
}
}
}