-
Notifications
You must be signed in to change notification settings - Fork 38
Add openapiv3 request bodies #69 #70
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
Conversation
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/ReqPostProducts' | ||
| $ref: '#/components/requestBodies/ReqPostProductsBody' |
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.
【相談ポイント】
- requestBodiesに全て切る方式なので、patsh各エンドポイントは結構スカスカになるが良いか?
- 400, 500エラーなどと同等の階層になり、一貫性は増すので、これはこれでよいかもしれない、と思っています。
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.
- すかすかになった関係上、L295~L297のようにここでは命名程度にルールを押さえ、削除部分はcomponents/requestBodiesに引っ越しました
| headers: ... | ||
| examples: ... | ||
| links: ... | ||
| callbacks: ... |
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.
項目を追加
| ... | ||
| example-1: | ||
| $ref: './examples/post-product.example.1.yaml' | ||
| $ref: '#/components/responses/RespPostProducts' |
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.
レスポンス側も、components/responses に寄せるという方向だったので修正
| ... | ||
| example-1: | ||
| $ref: './examples/post-product.example.1.yaml' | ||
| ``` |
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.
宣言の順番的だけ追加。
- エラー部分
- 共通部分
- アプリ個別
利用頻度が高いと思われる順に統合。
おそらく、共通部分はファイル切り出しするとややこしいので、そことの整合性がTODO
No description provided.