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

[BUG] goa can use Required parameter in MediaType (document is incorrect) #9

Closed
nao1215 opened this issue Mar 25, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@nao1215
Copy link
Owner

nao1215 commented Mar 25, 2022

linter が MediaType 内で Required 使えないよ、と指摘してくる

[FC019] webapi/design/users.go:92   MediaType() has Required(). Required() can be used in Attributes, Headers, Payload, Type, Params

で、goa 公式ドキュメントにも類似のことが書いてある。

Required can be used in: Attributes, Headers, Payload, Type, Params

しかし、MediaType 内で Required 有り/無しを変えて、goagen すると生成される内容が変わる。
つまり、Required は MediaType 内で使用可能である

@nao1215 nao1215 added the bug Something isn't working label Mar 25, 2022
@nao1215
Copy link
Owner Author

nao1215 commented Mar 25, 2022

Fix at v0.3.3

@nao1215 nao1215 closed this as completed Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant