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 bf9b7dd commit d8e29a6Copy full SHA for d8e29a6
src/OpenApi/src/Extensions/TypeExtensions.cs
@@ -19,7 +19,8 @@ public static bool IsJsonPatchDocument(this Type type)
19
while (modelType != null && modelType != typeof(object))
20
{
21
if (modelType.Namespace == JsonPatchDocumentNamespace &&
22
- (modelType.Name == JsonPatchDocumentName || modelType.Name.StartsWith(JsonPatchDocumentNameOfT, StringComparison.Ordinal)))
+ (modelType.Name == JsonPatchDocumentName ||
23
+ (modelType.IsGenericType && modelType.GenericTypeArguments.Length == 1 && modelType.Name == JsonPatchDocumentNameOfT)))
24
25
return true;
26
}
0 commit comments