SMILEY4 / ktor-swagger-ui

Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bump victools/jsonschema-generator to 4.33+ for Option.INLINE_NULLABLE_SCHEMAS

bklp opened this issue · comments

The generation of nullable types in "definitions"/$defs" is kind of weird. They show up listed in Schemas like this "-nullable" and they are pretty redundant in case there is already non-nullable definition of the same type.

Since victools/jsonschema-generator 4.33.0 there is Option.INLINE_NULLABLE_SCHEMAS to adress this (see https://github.com/victools/jsonschema-generator/blob/main/CHANGELOG.md#4330---2023-11-23).

Because of this I'd recommend bumping the version of victools/jsonschema-generator to 4.33.0 or higher.