-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openapi not set in the resulting json when set to "3.1.0" in OpenApiSpec #521
Comments
i wasn't able to reproduce this, my guess is that you don't have json(Json {
serializersModule = KompendiumSerializersModule.module
encodeDefaults = true // <---- this
explicitNulls = false
}) I'm also fairly certain for the other issue you opened, you just don't have the serializer module set to Kompendium (or, any other module that can handle i'm going to close this, but feel free to comment / reopen if you can't get it working. The |
That worked. Thank you for the help! One thing to note is that unless I set the swagger version as so: The page freezes on the latest |
Glad it worked for you :) As for the swagger bug... yea seems likely... not really anything I can do there unfortunately. Might make sense to hard code a default swagger version as the default, was thinking about doing the same for redoc. If you want to open a PR for that I'd accept it :) tho it would get shipped in the 4.0 release |
Kompendium Version:
3.14.4
Ktor version:
2.3.5
When you open the
/openapi.json
endpoint andopenapi
is set to"3.1.0"
in yourOpenApiSpec
the resulting json doesn't haveopenapi
set at all. If I change the version to"3.0.3"
the json renders correctly.This results in the page not rendering properly when adding the
swagger(pageTitle = "Simple API Docs")
route.The page would render as so when
openapi
is not set in the json:The text was updated successfully, but these errors were encountered: