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 f0edbb7 commit 2bdd976Copy full SHA for 2bdd976
Common/OpenAPI/OpenApiExtensions.cs
@@ -17,6 +17,11 @@ private static string RemoveResponseSuffix(string name)
17
18
private static string GetCleanName(Type type)
19
{
20
+ if (Nullable.GetUnderlyingType(type) is { } underlying)
21
+ {
22
+ return "Optional" + GetCleanName(underlying);
23
+ }
24
+
25
if (type.IsEnum || Type.GetTypeCode(type) is not TypeCode.Object)
26
27
return type.Name;
0 commit comments