Closed sigmanil closed 2 years ago
Is this still relevant ?
If I'm correct this was fixed with PR https://github.com/papsign/Ktor-OpenAPI-Generator/pull/88/ (For sure it fixes additional name field in security schema)
I have just tested my existing project hat uses com.github.papsign:Ktor-OpenAPI-Generator:0.2-beta.20
Both parts looks good.
"securitySchemes": {
"firebase": {
"bearerFormat": "JWT",
"scheme": "bearer",
"type": "http"
},
"jwtAuth": {
"bearerFormat": "JWT",
"scheme": "bearer",
"type": "http"
}
"security": [
{
"firebase": [
]
},
{
"jwtAuth": [
]
}
]
This has indeed been fixed :-)
JWT authorization with the bearer scheme needs a slight workaround for the generated openapi document to be valid and working. Here's what we did, in the route setup for the openapi.json document:
I'm not 100% sure we haven't mis-configured something somewhere, but I think it's a bug in the generation