utybo / Tegral

🟣 A Kotlin framework for web applications, cool libraries that go along with it!
https://tegral.zoroark.guru
Apache License 2.0
38 stars 4 forks source link

Kotlinx serializer annotation are ignored #99

Open perracodex opened 2 months ago

perracodex commented 2 months ago

The OpenAPI generator doesn't seem to respect kotlinx serializer annotations, such as @Transient, and fields marked with such are included in the spec and swagger example.

utybo commented 2 months ago

Tegral OpenAPI uses Swagger Core under the hood, which in turn uses Jackson, which uses a different set of annotations. There are two ways to go around this:

Edit: something very similar exists for JAXB here, something similar could likely be done for kotlinx.serialization support