1
我想在我的Swagger頁面上實現HTTP基本身份驗證。寫入Swagger(openAPI)規格:securityDefinitions
的docs for securityDefinitions舉個例子:
type: http
scheme: basic
但是當我把它添加到我的YAML文件是這樣的:
securityDefinitions:
type: http
scheme: basic
我得到一個錯誤:
我究竟做錯了什麼?