-
Notifications
You must be signed in to change notification settings - Fork 205
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
修正: プリセットの一律 500
エラーを詳細化し 422
化して修正
#1162
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
より良い案内があればという感じです 🙇
Co-authored-by: Hiroshiba <[email protected]>
@Hiroshiba |
@Hiroshiba |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
そういえばErrorの型の定義が大変なので、Result型定義してあげても良いかもとかちょっと思いました!
あまりPythonでは見かけないかもですが。
Rustとかではメジャーで、エディタの方でも自前実装して使ってます。
https://github.com/VOICEVOX/voicevox/blob/0fb559dd3d4a8a14b67a09b7bfdfdb73de67ae3b/src/type/result.ts
まあエラータイプに文字列リテラルを使うので、型システムがこれをちゃんと理解してくれるか次第な気がしますが・・・ 😇
内容
プリセット関連エラーを詳細化し
422
/500
混同を解消して修正関連 Issue
part of #944