OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Kotlinx polymorphism with custom discriminator support (#21531)
* kotlinx serialization fixes - added new config with kotlinx, discriminator (/w custom name) and kotlinx_serialization - remove discriminator properties from the generator in both base and derived classes - set discriminatorValue in additionalProperties of derived classes - add JsonClassDiscriminator the derived classes in the template - set SerialName to discriminatorValue in the template - change base classes to sealed class instead of interface - make variables in base classes abstract * Generated kotlin-allOff-discriminator-kotlinx-serialization sample * Added test for kotlinx_serialization with discriminator * renamed yaml * Added new sample to github workflow * Added comments to KotlinClientCodegen::postProcessAllModels
S
some00 committed
dba7aee41e59eaf06ec64aec6d7fa70d93833652
Parent: d7a8aae
Committed by GitHub <noreply@github.com>
on 7/31/2025, 8:29:39 AM