SMILEY4 / ktor-swagger-ui

Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Structural error at components.securitySchemes

douglasqueirozalmeida opened this issue · comments

Using https://editor.swagger.io/ to check the generated json presents these problems.

securityScheme("BasicAuth") { type = AuthType.HTTP scheme = AuthScheme.BASIC }
Structural error at components.securitySchemes.BasicAuth
should NOT have additional
additionalProperty: name


securityScheme(JWT_AUTH) { type = AuthType.HTTP scheme = AuthScheme.BEARER }
Structural error at components.securitySchemes.JwtAuth
should NOT have additional properties
additionalProperty: name

Thank you! The bug has been fixed with version 2.7.2