Skip to content

Commit 8344609

Browse files
committed
Added method check
1 parent 1732302 commit 8344609

File tree

1 file changed

+4
-0
lines changed
  • tools/OpenApiInfoGenerator/OpenApiInfoGenerator

1 file changed

+4
-0
lines changed

tools/OpenApiInfoGenerator/OpenApiInfoGenerator/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ private static void CompareOpenApiInfo(string version, IList<Model> openApiInfoM
101101
{
102102
openApiErrors.Add($"{fileName},{apiPath}, {method},OperationId changed from: {originalPathDetails.MethodInfo.OperationId}, OperationId changed to: {methodInfo.OperationId}");
103103
}
104+
if(originalPathDetails.MethodInfo != null && originalPathDetails.MethodInfo.Method != methodInfo.Method)
105+
{
106+
openApiErrors.Add($"{fileName},{apiPath}, {method},Method changed from: {originalPathDetails.MethodInfo.Method}, Method changed to: {methodInfo.Method}");
107+
}
104108

105109

106110
}

0 commit comments

Comments
 (0)