{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"API のバージョン管理と廃止"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"api-のバージョン管理と廃止","__idx":0},"children":["API のバージョン管理と廃止"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MoreLogin は各 OpenAPI ドキュメントの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["info.version"]}," に機械可読な契約スナップショットのバージョンを公開しています。バージョンはカレンダー形式 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YYYY-MM-DD"]}," で、リクエスト URL のバージョンセグメントではなくドキュメント契約を示します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"互換性のルール","__idx":1},"children":["互換性のルール"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"変更"},"children":["変更"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"分類"},"children":["分類"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ドキュメントでの扱い"},"children":["ドキュメントでの扱い"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["任意のリクエストフィールド、レスポンスフィールド、操作、列挙値の追加"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["追加的変更"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["変更履歴に記録し、すべてのローカライズ仕様を更新する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["実行時の動作を変えずに説明を明確化、または例を修正"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ドキュメント修正"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["連携の指針が変わる場合に記録する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["任意フィールドを必須化、フィールドや操作の削除・改名、許容値の縮小、既存セマンティクスの変更"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["破壊的変更"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["削除前に移行手段と個別にバージョン付けした契約を提供する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["操作に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deprecated: true"]}," を付ける"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["廃止予告"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["代替、告知日、そして承認後に予定削除日を記載する"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントは業務ロジックが許す範囲で、未知のレスポンスフィールドと列挙値を無視すべきです。これにより追加的リリースによる破損を減らせます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"廃止のメタデータ","__idx":2},"children":["廃止のメタデータ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OpenAPI の操作が権威ある機械可読の記載場所です。廃止予告された操作には次を含める必要があります："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deprecated: true"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["代替を示す説明、または代替がないことの明記"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["API 変更履歴への告知エントリ"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["製品とゲートウェイの責任者が承認した後にのみ記載する予定削除日"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["現時点で共通の最短廃止期間は保証されていません。削除日が明示的に公開されるまで、クライアントはその操作をサポート対象として扱いつつ、移行を計画すべきです。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"事実の-source-of-truth","__idx":3},"children":["事実の source of truth"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["実行時の動作が常に権威です。OpenAPI、例、ローカライズ版、エンドポイント動作マニフェスト、変更履歴は契約の乖離を防ぐため CI で一括検証されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"検証レベル","__idx":4},"children":["検証レベル"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リポジトリの品質ゲートに合格すると、OpenAPI ファイル、例、リンク、ローカライズ版、ガバナンス成果物がリポジトリ内で整合していることが確認できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ページ表示チェックでは、代表的なドキュメントルートがクライアント側エラーなしで読み込まれ、表示されることを確認できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デプロイ済み API に対する認証付きスモークテストだけが、本番動作と公開契約の一致を証明できます。このリポジトリではそのテストを既定で実行しないため、本番検証を実施した場合はリリースノートに別途明記する必要があります。"]}]},"headings":[{"value":"API のバージョン管理と廃止","id":"api-のバージョン管理と廃止","depth":1},{"value":"互換性のルール","id":"互換性のルール","depth":2},{"value":"廃止のメタデータ","id":"廃止のメタデータ","depth":2},{"value":"事実の source of truth","id":"事実の-source-of-truth","depth":2},{"value":"検証レベル","id":"検証レベル","depth":2}],"frontmatter":{"seo":{"title":"API のバージョン管理と廃止"}},"lastModified":"2026-09-05T06:38:55.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/api-reference/appendix/versioning-and-deprecation","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}