Closed thorjelly closed 12 months ago
I had to make a few modifications with recent library changes, but all the tests are passing.
One note, is there's now an #[oasgen(inline)]
configuration, which specifies whether the schema will be a $ref or will be inlined. I expanded the complex enum test to have inline and non-inline variants for all enum types (external, adjacent, internal, untagged).
Allows the OaSchema derive macro to work with complex enums, AKA tagged unions, by using the openapi oneOf keyword. This supports all serde tag types; external, internal, adjacent, and untagged. This should support variants of all kinds, including newtype variants, struct variants, tuple variants, and unit variants.
Depends on PR #7