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 853e351 commit 0636e4aCopy full SHA for 0636e4a
src/Microsoft.OpenApi.Readers/OpenApiDiagnostic.cs
@@ -26,5 +26,10 @@ public class OpenApiDiagnostic : IDiagnostic
26
/// Open API specification version of the document parsed.
27
/// </summary>
28
public OpenApiSpecVersion SpecificationVersion { get; set; }
29
+
30
+ /// <summary>
31
+ /// The unique hash code of the generated OpenAPI document
32
+ /// </summary>
33
+ public int HashCode { get; set; }
34
}
35
src/Microsoft.OpenApi.Readers/ParsingContext.cs
@@ -75,6 +75,7 @@ internal OpenApiDocument Parse(YamlDocument yamlDocument)
75
throw new OpenApiUnsupportedSpecVersionException(inputVersion);
76
77
78
+ Diagnostic.HashCode = doc.GetHashCode();
79
return doc;
80
81
0 commit comments