We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/codeborne/klite/blob/2f898f442d90f5d70fe6ea3b101dde1e2e1bf673/openapi/src/OpenAPI.kt#L90C1-L90C35
This writes the enum name in all caps, "QUERY" etc. This isn't compliant to OpenAPI spec and most codegens will ignore the parameters.
The text was updated successfully, but these errors were encountered:
Hotfix:
val jackson = kliteJsonMapper { this.addModules(SimpleModule( "enum hotfix" ).addSerializer<ParameterIn>(ParameterIn::class.java, object : JsonSerializer<ParameterIn>() { override fun serialize( value: ParameterIn, gen: JsonGenerator, serializers: SerializerProvider ) { gen.writeString(value.toString().lowercase()) } } )) } use(JsonBody(jackson))
Sorry, something went wrong.
#88 better fix: teach jackson to serialize enums using toString(), wh…
c366905
…ich will respect Swagger's ParameterIn and other enums toString() implementation (which is lower-case)
Successfully merging a pull request may close this issue.
https://github.com/codeborne/klite/blob/2f898f442d90f5d70fe6ea3b101dde1e2e1bf673/openapi/src/OpenAPI.kt#L90C1-L90C35
This writes the enum name in all caps, "QUERY" etc. This isn't compliant to OpenAPI spec and most codegens will ignore the parameters.
The text was updated successfully, but these errors were encountered: