SMILEY4 / ktor-swagger-ui

Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI
Apache License 2.0
150 stars 25 forks source link

Structural error at components.securitySchemes #77

Closed douglasqueirozalmeida closed 8 months ago

douglasqueirozalmeida commented 8 months ago

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

SMILEY4 commented 8 months ago

Thank you! The bug has been fixed with version 2.7.2