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 74d8866 commit a60b992Copy full SHA for a60b992
src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs
@@ -69,14 +69,7 @@ public void RegisterComponents(OpenApiDocument document)
69
// Register Schema
70
foreach (var item in document.Components.Schemas)
71
{
72
- if (item.Value.Id != null)
73
- {
74
- location = item.Value.Id;
75
- }
76
- else
77
78
- location = baseUri + ReferenceType.Schema.GetDisplayName() + "/" + item.Key;
79
+ location = item.Value.Id ?? baseUri + ReferenceType.Schema.GetDisplayName() + "/" + item.Key;
80
81
RegisterComponent(location, item.Value);
82
}
0 commit comments