Description
ClientGenerator.kt:171 resolves the return type by filtering responses whose key starts with "2". The OpenAPI default response is ignored entirely. When an endpoint only defines a default response (without explicit 2xx), the generated function returns Unit even though a response schema exists.
Acceptance criteria
Description
ClientGenerator.kt:171resolves the return type by filtering responses whose key starts with"2". The OpenAPIdefaultresponse is ignored entirely. When an endpoint only defines adefaultresponse (without explicit 2xx), the generated function returnsUniteven though a response schema exists.Acceptance criteria
ClientGeneratorfalls back todefaultresponse schema when no explicit 2xx response is defineddefaultare present, 2xx takes precedencedefaultresponse, and with bothdefault+ 2xx