SMILEY4 / ktor-swagger-ui

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

Missing property schema for properties that start with 'is[A-Z]' #60

Closed ReverendDread closed 10 months ago

ReverendDread commented 1 year ago

If you start a property name with 'is' and use a capital letter directly following, the property schema fails to generate.

Examples:

data class Irrelevant(
    val isNamed: String,
    val isIrrelevent: String
)
SMILEY4 commented 1 year ago

Hi, this is an problem with the underlying schema-generation-library i am using (see https://github.com/victools/jsonschema-generator/issues/363), so i don't think there is much i can do on our side. However, the linked issue has already been resolved and fixed, just not yet released. My plan would be to wait for the new version of jsonschema-generator and upgrade as soon as possible.

Sterta commented 10 months ago

@SMILEY4 Release is ready https://github.com/victools/jsonschema-generator/releases/tag/v4.32.0 :)

SMILEY4 commented 10 months ago

Now fixed with version 2.7.0