Additional context
I'm pretty new with Swagger, not sure if having both an allOf reference and properties is considered an anti-pattern, if so, please let me know so I can talk to the company that build this API 😉 .
The API is build with the C# minimal-api with these settings:
Describe the bug When an API describes both
allOf
andproperties
on a Swagger schema the properties are not included in the generated Zod schema.Minimal reproduction See this Playground example.
TestResult
defines both anallOf
(line 34) andproperties
(line 39). However, theclientId
property is not available in the api.client.ts anywhere.Expected behavior To have an extended schema, something like:
Additional context I'm pretty new with Swagger, not sure if having both an
allOf
reference andproperties
is considered an anti-pattern, if so, please let me know so I can talk to the company that build this API 😉 .The API is build with the C# minimal-api with these settings: