Refresh openapi.yaml and remove spec workarounds fixed upstream
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 58/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- git, openapi, swift
- 領域
- build-system, tooling
調査の方向性
Read Makefile, Scripts/prepare_openapi.py, and the three named workaround scripts, then run make generate to compare regenerated output. Remove the scripts and calls only if the output is unchanged; update the Makefile comment with fork commit 87d1f6f. Run swift package diagnose-api-breaking-changes on the regeneration diff and follow CONTRIBUTING.md under “Generated types” for any breaks.
索引モデルが issue の本文から書いたものです。
説明
The upstream openai-openapi spec has fixed three of the problems that Scripts/prepare_openapi.py works around. Against a fresh download of upstream openapi.yaml, each of these scripts is now a no-op:
| Script | Upstream state |
|---|---|
Scripts/fix_rounded_int64_bounds.py |
Exact bounds (-9223372036854775808 / 9223372036854775807), no rounded values left |
Scripts/fix_boolean_exclusive_minimum.py |
exclusiveMinimum is numeric everywhere, no boolean form left |
Scripts/fix_recursive_reference.py |
No $recursiveRef left; CompoundFilter now references itself with a plain $ref |
Tasks
- Run
make generateto refreshopenapi.yamland regenerateComponents.swift - Remove the three scripts above and their calls in
Scripts/prepare_openapi.py, after confirming the regenerated output is unchanged without them - Run
swift package diagnose-api-breaking-changeson the regeneration diff and handle any breaks as described in CONTRIBUTING.md (Generated types) - Document fork commit
87d1f6f("Unwrap nullable anyOf discriminator properties in oneOf switch cases") in theMakefilecomment, which currently lists only the other three required generator changes
Workarounds that are still needed
Checked at the same time, for reference:
- Generator fork, nullable
anyOf: [T, {type: null}]: not supported upstream (apple/swift-openapi-generator#928, #931 and #933 closed unmerged; #831 open) - Generator fork, discriminators without mapping: openai/openai-openapi#542 still open; 138 unmapped discriminators have runtime values that differ from schema names
- Generator fork, colliding discriminator values:
messagestill collides inItem,ItemResource,RealtimeConversationItem,BetaItemandBetaItemResource remove_unsupported_webhooks.py: the spec still has top-levelwebhooks; generator fix apple/swift-openapi-generator#734 is still openremove_required_properties.py: all six entries are still required in the spec without being declared as properties- Typealias stripping in
extract_components.py: still triggered (100 lines stripped on the last run)
- 主要言語
- Swift
- スター
- 2.9k
- フォーク
- 519
- 平均マージ
- 4日 9時間
- マージ済み PR(30日)
- 13
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MacPaw/OpenAI のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 3 日以内に返信
-
Enable batch promptsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MacPaw/OpenAI#73 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 3 日以内に返信
-
Check the HTTP status code for JSON responses対応中かも @mvanhorn が 1 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
MacPaw/OpenAI#469 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 3 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 3 日以内に返信
似ている issue
-
builtin-port enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
cmlarsen/writemorebetter#235 ·
メンテナーはふだん 1 日以内に返信
-
bug-pending-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
NativeScript/NativeScript#11525 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
callstack/agent-device#3627 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
maziyarpanahi/openmed#4207 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信