[Bug]: 2.1.48 2xx response written as $ref: '#/components/responses/X' generates void.
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java
調査の方向性
Start by locating how swagger-parser resolves $ref values under components/responses and how the resolved response schema reaches generated return types; the payload names no source files or tests. Compare parsing the referenced 202 response with the inline response schema shown in the report. Done means the referenced response retains its typed return value instead of producing void.
索引モデルが issue の本文から書いたものです。
説明
Description
2xx responses written as $ref: '#/components/responses/X' generate void / ApiResponse<Void>.
Affected Version
2.1.48
Steps to Reproduce
responses:
202:
$ref: '#/components/responses/RequestAcceptedResponse'
generates
/**
* Does a thing
* @param thing ID
* @throws ApiException If API call fails
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 202 </td><td> </td><td> - </td></tr>
<tr><td> 0 </td><td> </td><td> - </td></tr>
</table>
*/
public void doAThing(String thingID) throws ApiException {
doAThingWithHttpInfo(thingID);
}
responses:
202:
description: Request accepted. Confirmation of success/failure of request to be sent asynchronously via SNS.
content:
application/json:
schema:
$ref: '#/components/schemas/responseBody'
generates the expected response type.
Expected Behavior
parsing should not cause typed object references to generate void returns in client code
Actual Behavior
typed object references in the swagger schema generate void returns in client code
Environment
- Java version: JDK 17
- Build tool: Gradle 7.x, 8.x
- OS: AmazonLinux2 x86_64
Additional Context
NA
Checklist
- I have searched the existing issues and this is not a duplicate.
I've searched, but don't often work with swagger and don't have full visibility into the build toolchain being run.
If this smells like a duplicate to the maintainers, please feel free to resolve.
- I have provided sufficient information for maintainers to reproduce the issue.
As above, made my best effort in the time available.
- 主要言語
- Java
- スター
- 870
- フォーク
- 565
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
swagger-api/swagger-parser のほかの issue
-
InlineModelResolver.uniqueName throws StringIndexOutOfBoundsException for titles starting with a separator (camelCaseFlattenNaming)対応中かも @arimu1 が 55 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
swagger-api/swagger-parser#2386 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
swagger-api/swagger-parser#2168 ·
-
ResolveFully fails on internal references when the initial spec is read from a file URL対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
swagger-api/swagger-parser#1922 · コメント 2 件 · リアクション 1 件 ·
-
[Bug]: Discriminator mapping of a oneOf nested in array items gets a null key and is no longer updated after external ref resolution (regression since 2.1.36)対応中かも @wyhasany が 9 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
swagger-api/swagger-parser#2406 · コメント 1 件 ·
-
[Question]: Guidance on jackson-coreutils vulnerabilities in legacy Swagger compatibility dependencyオープンQuestion
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
swagger-api/swagger-parser#2405 ·
swagger-api/swagger-parser の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
2026 Error Report
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
triplea-game/triplea#15096 ·
メンテナーはふだん 1 日以内に返信
-
[Bug][API] Switching workflow versions leaves schedules online対応中かも @zhuangchong が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/dolphinscheduler#18731 ·
メンテナーはふだん 1 日以内に返信
-
Implement JDBC Domain Enums (`SqlCategory`, `SqlExecutionStatus`, `SqlExecutionType`) in Core Moduleオープンcore-module enhancement good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 87/100
sdlc-pro/spring-lens#531 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/rocketmq-dashboard#7340 ·
メンテナーはふだん 3 日以内に返信