Files
Bartosz Radzyński fd0d43f251 feat: Add oneOf for scala-http4s client (#22969)
* 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
2026-03-22 22:22:23 +08:00
..
2023-06-02 20:59:18 +08:00
2024-04-24 15:34:02 +08:00
2025-06-03 15:26:46 +08:00