Skip to content

Commit 124776b

Browse files
committed
minor
1 parent 53e2f12 commit 124776b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/LEGO.AsyncAPI.Readers/AsyncApiJsonDocumentReader.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@
33
namespace LEGO.AsyncAPI.Readers
44
{
55
using System;
6-
using System.Collections.Generic;
76
using System.IO;
87
using System.Linq;
9-
using System.Text.Json;
108
using System.Text.Json.Nodes;
119
using System.Threading;
1210
using System.Threading.Tasks;
13-
using Json.More;
1411
using Json.Pointer;
1512
using LEGO.AsyncAPI.Exceptions;
1613
using LEGO.AsyncAPI.Extensions;
1714
using LEGO.AsyncAPI.Models;
1815
using LEGO.AsyncAPI.Models.Interfaces;
19-
using LEGO.AsyncAPI.Readers.Exceptions;
2016
using LEGO.AsyncAPI.Readers.Interface;
2117
using LEGO.AsyncAPI.Readers.Services;
2218
using LEGO.AsyncAPI.Services;
@@ -238,7 +234,7 @@ private void ResolveExternalReferences(AsyncApiDiagnostic diagnostic, IAsyncApiS
238234
this.context.Workspace.RegisterComponent(reference.Reference.ExternalResource, stream);
239235
}
240236

241-
var component = this.ResolveArtifactReferences(stream, reference, diagnostic);
237+
var component = this.ResolveStreamReferences(stream, reference, diagnostic);
242238
if (component == null)
243239
{
244240
diagnostic.Errors.Add(new AsyncApiError(string.Empty, $"Unable to deserialize reference '{reference.Reference.Reference}'"));
@@ -268,7 +264,7 @@ private JsonNode ReadToJson(Stream stream)
268264
return default;
269265
}
270266

271-
private IAsyncApiSerializable ResolveArtifactReferences(Stream stream, IAsyncApiReferenceable reference, AsyncApiDiagnostic diagnostic)
267+
private IAsyncApiSerializable ResolveStreamReferences(Stream stream, IAsyncApiReferenceable reference, AsyncApiDiagnostic diagnostic)
272268
{
273269
JsonNode json = null;
274270
try

0 commit comments

Comments
 (0)