Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Refresh openapi.yaml and remove spec workarounds fixed upstream

オープン
#463 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
58/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
git, openapi, swift

調査の方向性

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 generate to refresh openapi.yaml and regenerate Components.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-changes on 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 the Makefile comment, 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: message still collides in Item, ItemResource, RealtimeConversationItem, BetaItem and BetaItemResource
  • remove_unsupported_webhooks.py: the spec still has top-level webhooks; generator fix apple/swift-openapi-generator#734 is still open
  • remove_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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MacPaw/OpenAI のほかの issue

MacPaw/OpenAI の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。