We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5531eb3 commit 830eb35Copy full SHA for 830eb35
src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiExampleGenerator.cs
@@ -175,8 +175,11 @@ private static IOpenApiAny GetTypeNameForExample(IEdmTypeReference edmTypeRefere
175
array.Add(GetTypeNameForExample(elementType));
176
return array;
177
178
- case EdmTypeKind.Untyped:
179
case EdmTypeKind.TypeDefinition:
+ var typedef = edmTypeReference.AsTypeDefinition().TypeDefinition();
180
+ return GetTypeNameForExample(new EdmPrimitiveTypeReference(typedef.UnderlyingType, edmTypeReference.IsNullable));
181
+
182
+ case EdmTypeKind.Untyped:
183
case EdmTypeKind.EntityReference:
184
default:
185
throw new OpenApiException("Not support for the type kind " + edmTypeReference.TypeKind());
0 commit comments