Skip to content

Commit 9cd7aae

Browse files
committed
fix: removes unused parameters
Signed-off-by: Vincent Biret <[email protected]>
1 parent f3a601b commit 9cd7aae

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/Microsoft.OpenApi.Readers/OpenApiYamlReader.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ public ReadResult Read(MemoryStream input,
7777
}
7878

7979
/// <inheritdoc/>
80-
public static ReadResult Read(JsonNode jsonNode, OpenApiReaderSettings settings, string format = null)
80+
public static ReadResult Read(JsonNode jsonNode, OpenApiReaderSettings settings)
8181
{
82-
return _jsonReader.Read(jsonNode, settings, OpenApiConstants.Yaml);
82+
return _jsonReader.Read(jsonNode, settings);
8383
}
8484

8585
/// <inheritdoc/>

src/Microsoft.OpenApi/Reader/OpenApiJsonReader.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,9 @@ public ReadResult Read(MemoryStream input,
6060
/// </summary>
6161
/// <param name="jsonNode">The JsonNode input.</param>
6262
/// <param name="settings">The Reader settings to be used during parsing.</param>
63-
/// <param name="format">The OpenAPI format.</param>
6463
/// <returns></returns>
6564
public ReadResult Read(JsonNode jsonNode,
66-
OpenApiReaderSettings settings,
67-
string format = null)
65+
OpenApiReaderSettings settings)
6866
{
6967
if (jsonNode is null) throw new ArgumentNullException(nameof(jsonNode));
7068
if (settings is null) throw new ArgumentNullException(nameof(settings));

test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ namespace Microsoft.OpenApi.Reader
14631463
{
14641464
public OpenApiJsonReader() { }
14651465
public Microsoft.OpenApi.Reader.ReadResult Read(System.IO.MemoryStream input, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings) { }
1466-
public Microsoft.OpenApi.Reader.ReadResult Read(System.Text.Json.Nodes.JsonNode jsonNode, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings, string format = null) { }
1466+
public Microsoft.OpenApi.Reader.ReadResult Read(System.Text.Json.Nodes.JsonNode jsonNode, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings) { }
14671467
public System.Threading.Tasks.Task<Microsoft.OpenApi.Reader.ReadResult> ReadAsync(System.IO.Stream input, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings, System.Threading.CancellationToken cancellationToken = default) { }
14681468
public T ReadFragment<T>(System.IO.MemoryStream input, Microsoft.OpenApi.OpenApiSpecVersion version, Microsoft.OpenApi.Models.OpenApiDocument openApiDocument, out Microsoft.OpenApi.Reader.OpenApiDiagnostic diagnostic, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings = null)
14691469
where T : Microsoft.OpenApi.Interfaces.IOpenApiElement { }

0 commit comments

Comments
 (0)