Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正: POST /setting レスポンススキーマを 200 から 204 へ変更 #1236

Merged
merged 2 commits into from
May 16, 2024

Conversation

tarepan
Copy link
Contributor

@tarepan tarepan commented May 12, 2024

内容

概要: POST /setting レスポンススキーマを 200 から 204 へ変更して修正

POST /setting は設定変更 API であり、success 時は常に 204 No Content を返す。ゆえにスキーマとしても Response は 204 であるべきである。
しかし path operation デコレータで status_code を指定し忘れておりスキーマ上は 200 となっている。これはバグである。

このような背景から、POST /setting レスポンススキーマを 200 から 204 へ変更して修正することを提案します。

関連 Issue

無し

@tarepan tarepan requested a review from a team as a code owner May 12, 2024 08:13
@tarepan tarepan requested review from Hiroshiba and removed request for a team May 12, 2024 08:13
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

統一感あっていいですね!

voicevox_engine/app/routers/setting.py Outdated Show resolved Hide resolved
@Hiroshiba Hiroshiba merged commit db7f5a9 into VOICEVOX:master May 16, 2024
4 checks passed
@tarepan tarepan deleted the fix/setting_response_schema branch May 16, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants