ktor-swagger-ui
ktor-swagger-ui copied to clipboard
Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI
As said in the title, I have looked into the code up to io.github.smiley4.schemakenerator.reflection.steps.ReflectionTypeProcessingStep#parseProperty ```kotlin private fun parseProperty( member: KProperty, resolvedTypeParameters: Map, typeData: MutableList ): PropertyData { return PropertyData( name...
When using a custom generator with type.processKotlinxSerialization(), it seems like the annotations (like `@Description` for example) are dropped. In schemakenerator's KotlinxSerializationTypeProcessingStep.kt the process function below uses KSerializer#descriptor ```kotlin private fun...
I have overwrite block inside Swagger plugin: ```kotlin overwrite( Schema().also { it.type = "string" it.format = "date-time" } ) ``` But it doesn't apply the format if it's the body...
I am missing the option to add a discriminator property to a body that can contain anyOf a specified sealed interface. this is the body code i am using and...
Hey - is there a plan to add support for the OAS 3.1 `webhooks` top-level declaration? https://spec.openapis.org/oas/v3.1.0.html#oasWebhooks This would be extremely useful.
also see [#97]
On the following line: https://github.com/SMILEY4/ktor-swagger-ui/blob/013161a5c301a331e707e393fecfc13c4e405ec4/ktor-swagger-ui/src/main/kotlin/io/github/smiley4/ktorswaggerui/dsl/routes/OpenApiResponses.kt#L38 `statusCode.toString()` should be replaced with `statusCode.value.toString()` Otherwise, the resulting schema contains incorrect values. For example, with `code(HttpStatusCode.BadRequest)`: ```json "responses": { "400 Bad Request": { "headers":...