You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generation fails with an OpenAPI description like the following,
'/unionType':
get:
responses:
'200':
description: A response with two or more distinct types content:
'application/json':
schema:
oneOf:
- $ref: "#/components/schemas/simpleObject"
- { type: number }x-csharp: Task<GetUnionTypeResponse> GetAsync(...);
We need to fallback to something like UnionTypeResponse as a classname. When declarationName is empty, the generation fails with an ugly error.
The text was updated successfully, but these errors were encountered:
See this code:
kiota/src/Kiota.Builder/Extensions/OpenApiSchemaExtensions.cs
Line 34 in b8b3349
Generation fails with an OpenAPI description like the following,
We need to fallback to something like UnionTypeResponse as a classname. When declarationName is empty, the generation fails with an ugly error.
The text was updated successfully, but these errors were encountered: