Skip to content

Conversation

@ma91n
Copy link
Collaborator

@ma91n ma91n commented Dec 4, 2023

No description provided.

@ma91n ma91n self-assigned this Dec 4, 2023
application/json:
schema:
$ref: '#/components/schemas/ReqPostProducts'
$ref: '#/components/requestBodies/ReqPostProductsBody'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

【相談ポイント】

  • requestBodiesに全て切る方式なので、patsh各エンドポイントは結構スカスカになるが良いか?
    • 400, 500エラーなどと同等の階層になり、一貫性は増すので、これはこれでよいかもしれない、と思っています。

Copy link
Collaborator Author

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: ...
Copy link
Collaborator Author

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'
Copy link
Collaborator Author

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'
```
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

宣言の順番的だけ追加。

  • エラー部分
  • 共通部分
  • アプリ個別

利用頻度が高いと思われる順に統合。
おそらく、共通部分はファイル切り出しするとややこしいので、そことの整合性がTODO

@ma91n ma91n merged commit d66d31a into develop/openapiv3 Dec 4, 2023
@ma91n ma91n deleted the develop/openapiv3_requestBodies branch December 4, 2023 04:28
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