Skip to content

仕様書のエラー契約を RFC 9457 problem+json に更新#3

Merged
Corvus400 merged 1 commit into
mainfrom
docs/rfc-9457-error-contract
May 25, 2026
Merged

仕様書のエラー契約を RFC 9457 problem+json に更新#3
Corvus400 merged 1 commit into
mainfrom
docs/rfc-9457-error-contract

Conversation

@Corvus400
Copy link
Copy Markdown
Owner

概要

  • mock-server main の /openapi.json から fictional-drug-and-disease-ref/openapi.json を再生成
  • 02/05 の手書きエラー契約を RFC 9457 application/problem+json に更新
  • validation は HTTP 422 + errors[].field、not-found/internal は type URI カテゴリで記述
  • 成功応答の disclaimer は維持し、エラー body には含めないことを明記
  • 12_KtorモックサーバーFixture設計調査レポート.md は歴史的調査レポートのため未変更

検証

  • python3 -m json.tool fictional-drug-and-disease-ref/openapi.json >/dev/null
  • ProblemDetails schema presence check
  • scripts/public-readiness-check.sh
  • 02/05 の旧契約 grep: ErrorResponse(code, { code, message, details, disclaimer }, INVALID_, INTERNAL_ERROR が 0 件
  • 02/05 の HTTP 400 grep が 0 件
  • problem+json|RFC 9457|not-found|validation count > 0

@Corvus400 Corvus400 merged commit 122c5d1 into main May 25, 2026
3 checks passed
@Corvus400 Corvus400 deleted the docs/rfc-9457-error-contract branch May 25, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant