mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-22 22:59:05 +00:00
* feat(scala-http4s): Add oneOf support with sealed traits Implement oneOf schema support for scala-http4s client generator using sealed traits with inlined members. Falls back to regular traits for edge cases (nested oneOf, mixed members). - Add postProcessAllModels to detect and mark oneOf models - Update model.mustache for sealed/regular trait generation - Support all discriminator modes (none, implicit, mapping) - Fix Scala 3 syntax (wildcard imports with *) - Handle shared members and import management - Add test and regenerate samples Common oneOf schemas generate sealed traits for exhaustive pattern matching. Edge cases use regular traits and emit warnings. All generated code compiles. * Enhance oneOf test with comprehensive assertions Add detailed assertions for sealed traits, discriminators, Scala 3 syntax, edge cases, and verify inlined members are not in separate files * Address review findings