SMILEY4 / ktor-swagger-ui

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

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

Closed s76527 closed 1 year ago

s76527 commented 1 year ago

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

SMILEY4 commented 1 year ago

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