SMILEY4 / ktor-swagger-ui

Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SchemaAnnotationExample: /swagger-ui/api.json is an emtpy JSON object

s76527 opened this issue · comments

commented

I just figured out that since 2.0.0, when I annotate my fields in data classes with @field:Schema(nullable = true), the api.json will be generated with only an empty JSON object {}. Same applies to that example in SchemaAnnotationExample.kt.

Edit: correct link reference

Hi,
thank you for reporting this bug. Its now fixed with version 2.2.2.