[OpenAPI 3.1] Phase 1: 3.0→3.1 converter
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
調査の方向性
Start from the plan in #942, then look at how org.openapitools.openapidiff.core currently parses specs and where swagger-core's mapper and JsonSchema are already used. The new normalize package must walk components, parameters, headers, bodies, callbacks and nested schemas, applying the listed rules on a deep copy. Compare converted 3.0 output against natively parsed 3.1 for the paired fixtures under the test resources as serialized JSON; also add the Swagger 2.0 fixture and a test asserting the input objects are unchanged.
索引モデルが issue の本文から書いたものです。
説明
Part of the OpenAPI 3.1 plan: #942 (Stage 1, Phase 1)
Goal
A converter that turns Swagger 2.0 / OpenAPI 3.0 objects into the 3.1 form. Not wired in yet.
Scope
- New package
org.openapitools.openapidiff.core.normalize, called once per spec - Walks every schema: components, parameters, headers, request/response bodies, callbacks, and nested (properties, items, additionalProperties, allOf/anyOf/oneOf, not)
- Rules:
type→types;nullable: true→"null"intypes(not when there is notype); booleanexclusiveMinimum/Maximum→ numeric;example→examples; typed classes →JsonSchema - Works on a copy (JSON round-trip with swagger-core's mapper), so the input objects are never modified
Done when
- Converted 3.0 == natively parsed 3.1 (compared as serialized JSON) for all paired fixtures
- Swagger 2.0 fixture converts correctly
- Copy test: input objects are unchanged after conversion
- 主要言語
- Java
- スター
- 1.1k
- フォーク
- 191
- 平均マージ
- 4日 23時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenAPITools/openapi-diff のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
OpenAPITools/openapi-diff#506 ·
メンテナーはふだん 5 日以内に返信
-
HtmlRender: Notes of Parameters shows always the new description対応中かも @Inf1mum が 6 日前に担当しました。 オープンgood first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
OpenAPITools/openapi-diff#364 ·
メンテナーはふだん 5 日以内に返信
-
Render capabilities
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
OpenAPITools/openapi-diff#959 ·
メンテナーはふだん 5 日以内に返信
-
Render capabilities
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
OpenAPITools/openapi-diff#958 ·
メンテナーはふだん 5 日以内に返信
-
Render capabilities
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
OpenAPITools/openapi-diff#957 ·
メンテナーはふだん 5 日以内に返信
OpenAPITools/openapi-diff の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
eclipse-tradista/tradista#371 ·
メンテナーはふだん 1 日以内に返信
-
critical
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mars-sim/mars-sim#2199 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
projeto-ong-amar/projeto-ong-amar-backend#26 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
primefaces/primefaces#15568 ·
メンテナーはふだん 1 日以内に返信
-
崩溃日志只按 CRLF 分行オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PCL-Community/PCL-CE#3872 ·
メンテナーはふだん 1 日以内に返信