aio-libs / aio-libs/aiohttp-apischema

Fix duplicate operationId

未關閉
#10 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
12
分支
4
平均合併
4 分鐘
30 天內合併 PR
2

描述

Currently, operationId is set from the name that is decorated. This means that web.View methods all receive the same ID. This results in every endpoint in that class opening/closing in the swagger UI when any one is clicked, due to them all having the same id attribute.

The same issue could happen if a user utilises the same handler function for multiple paths in the router.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。