refactor(openapi): document.ts を領域別 module に分割し出力 JSON を byte 単位で固定 (R9c) - #620
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
…R9c) 第 6 回レビュー Phase 6 の R9c (E16・F14)。1,839 行の lib/openapi/document.ts を 119 行の facade (buildOpenApiDocument は不変) と payment/schema/components/license/discovery/ vanilla/activity/monitor/stores/shops/directory の 11 module に分ける。40 個の宣言は byte 単位で同一 (原本の行範囲を script で写した)。出力 JSON は 14 通りの設定で sha256 が分割前と同一。flag/env を import 後に切り替える case で、import 時と生成時の 評価の区別が変わっていないことも固定した。 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HeizmagJBgL5peL5mQpxkc
cipherwebllc
force-pushed
the
fix/r6-r9c-openapi-split
branch
from
September 24, 2026 13:37
576b743 to
6146c39
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
第 6 回レビュー Phase 6 (完全リファクタ) の R9c です (指摘 E16・F14)。出力を変えない分割だけです。
1,839 行の
lib/openapi/document.tsを、119 行の facade (buildOpenApiDocumentは不変・同じ export と path) と 11 の module に分けます。payment.ts・schema.tscomponents.tslicense.ts・discovery.ts・vanilla.ts・activity.ts・monitor.ts・stores.ts・shops.ts・directory.tsexportと 2 か所のコメント移動だけです。document.tsを import せず、循環はありません。helper は読み込み時に何もしません。/api/paid/storesはdiscovery.tsに残しました。docs/DEPLOY_CHECKLIST.mdの参照先を新しい file に直しました。/openapi.jsonは AI エージェントが読む公開の契約です。出力の JSON は 14 通りの設定で sha256 が分割前と同一で、レビュー役も独立に 6 通りを byte 比較しています。固定と検証 (base = main)
既存の不整合 (本 PR では変えない・B-R9d・公開文書なので承認後に)
PaymentRequiredの example はx402Version: 1ですが、header の説明は v2 です。StorageUnavailableの説明が "shop snapshot" ですが、shop 以外の route も参照しています。🤖 Generated with Claude Code
https://claude.ai/code/session_01HeizmagJBgL5peL5mQpxkc