https://kotlinlang.org logo
#http4k
Title
# http4k
v

Vojtěch Knyttl

09/09/2021, 3:00 PM
We are using http4k with OpenApi doc generation with custom jackson. That is great as the examples in OpenApi are 100% equal to responses. However, this is not true for enum models. For example this enum model for DonutSize correctly show "example: d4" in lowercase (as we use jackson enum transformer to lowercase), but the individual enums are rendered uppercase. Is there something special we need to do for the enum models to be generated lowercase? Thanks!
👍 1
d

dave

09/09/2021, 3:24 PM
This is a bug - simple one and an easy fix - we just weren't using the Jackson instance to serialise the enum 🙂
I'll put it into the next release
v

Vojtěch Knyttl

09/09/2021, 3:25 PM
do you want an issue?
d

dave

09/09/2021, 3:25 PM
you can do if you like, yep
v

Vojtěch Knyttl

09/09/2021, 3:27 PM
18 Views