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 68f9cbe commit 32a2346Copy full SHA for 32a2346
1 file changed
src/ByteBard.AsyncAPI/AsyncApiWorkspace.cs
@@ -203,6 +203,24 @@ public void RegisterComponents(AsyncApiDocument document)
203
{
204
this.RegisterComponent(location + "/messages/" + message.Key, message.Value);
205
}
206
+
207
+ string serverBaseUri = "#/servers/";
208
+ foreach (var server in document.Servers)
209
+ {
210
+ var registerableServerValue = server.Value;
211
+ if (server.Value is IAsyncApiReferenceable reference)
212
213
+ if (reference.Reference.IsExternal)
214
215
+ continue;
216
+ }
217
218
+ registerableServerValue = this.ResolveReference<AsyncApiServer>(reference.Reference);
219
220
221
+ location = serverBaseUri + server.Key;
222
+ this.RegisterComponent(location, registerableServerValue);
223
224
225
226
0 commit comments