You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
Either also add Jackson annotations to your models in addition to kotlinx.serialization annotations. Not great, but it should work.
Find some way to tell Swagger Core how kotlinx.serialization annotations should be interpreted. No idea how to do this but I'll figure something out.
Edit: something very similar exists for JAXB here, something similar could likely be done for kotlinx.serialization support
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.The text was updated successfully, but these errors were encountered: