Skip to content

Commit eecda34

Browse files
committed
.
1 parent a2f6198 commit eecda34

File tree

47 files changed

+62
-222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+62
-222
lines changed

src/Microsoft.OpenApi.Hidi/Options/CommandOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ public IReadOnlyList<Option> GetPluginCommandOptions()
104104
LogLevelOption
105105
};
106106
}
107-
108107
}
108+
109109
}

src/Microsoft.OpenApi.Readers/Exceptions/OpenApiReaderException.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,5 @@ public OpenApiReaderException(string message, YamlNode node) : base(message)
5151
/// <param name="message">Plain text error message for this exception.</param>
5252
/// <param name="innerException">Inner exception that caused this exception to be thrown.</param>
5353
public OpenApiReaderException(string message, Exception innerException) : base(message, innerException) { }
54-
5554
}
5655
}

src/Microsoft.OpenApi.Readers/OpenApiTextReaderReader.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public async Task<ReadResult> ReadAsync(TextReader input, CancellationToken canc
8383
return await new OpenApiYamlDocumentReader(this._settings).ReadAsync(yamlDocument, cancellationToken);
8484
}
8585

86-
8786
/// <summary>
8887
/// Reads the stream input and parses the fragment of an OpenAPI description into an Open API Element.
8988
/// </summary>

src/Microsoft.OpenApi.Readers/ParsingContext.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,5 @@ public void PopLoop(string loopid)
244244
_loopStacks[loopid].Pop();
245245
}
246246
}
247-
248247
}
249248
}

src/Microsoft.OpenApi.Readers/Services/DefaultStreamLoader.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ internal class DefaultStreamLoader : IStreamLoader
1717
private readonly Uri baseUrl;
1818
private HttpClient _httpClient = new HttpClient();
1919

20-
2120
public DefaultStreamLoader(Uri baseUrl)
2221
{
2322
this.baseUrl = baseUrl;

src/Microsoft.OpenApi.Readers/V2/OpenApiDocumentDeserializer.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,5 @@ public override void Visit(OpenApiOperation operation)
338338
};
339339
}
340340
}
341-
342-
343341
}
344342
}

src/Microsoft.OpenApi.Readers/V2/OpenApiV2VersionService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using Microsoft.OpenApi.Readers.ParseNodes;
1313
using Microsoft.OpenApi.Readers.Properties;
1414

15-
1615
namespace Microsoft.OpenApi.Readers.V2
1716
{
1817
/// <summary>
@@ -198,7 +197,6 @@ public OpenApiReference ConvertToOpenApiReference(string reference, ReferenceTyp
198197
id = localSegments[2];
199198
}
200199

201-
202200
// $ref: externalSource.yaml#/Pet
203201
return new OpenApiReference
204202
{

src/Microsoft.OpenApi.Readers/V3/OpenApiComponentsDeserializer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ internal static partial class OpenApiV3Deserializer
3030
{"callbacks", (o, n) => o.Callbacks = n.CreateMapWithReference(ReferenceType.Callback, LoadCallback)},
3131
};
3232

33-
3433
private static PatternFieldMap<OpenApiComponents> _componentsPatternFields =
3534
new PatternFieldMap<OpenApiComponents>
3635
{

src/Microsoft.OpenApi.Readers/V3/OpenApiMediaTypeDeserializer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ internal static partial class OpenApiV3Deserializer
6363
}
6464
};
6565

66-
6766
private static readonly AnyMapFieldMap<OpenApiMediaType, OpenApiExample> _mediaTypeAnyMapOpenApiExampleFields =
6867
new AnyMapFieldMap<OpenApiMediaType, OpenApiExample>
6968
{

src/Microsoft.OpenApi.Workbench/MainModel.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public class MainModel : INotifyPropertyChanged
4040

4141
private string _renderTime;
4242

43-
4443
/// <summary>
4544
/// Default format.
4645
/// </summary>
@@ -51,7 +50,6 @@ public class MainModel : INotifyPropertyChanged
5150
/// </summary>
5251
private OpenApiSpecVersion _version = OpenApiSpecVersion.OpenApi3_0;
5352

54-
5553
private HttpClient _httpClient = new HttpClient();
5654

5755
public string Input
@@ -230,7 +228,6 @@ internal async Task ParseDocument()
230228
stream = CreateStream(_input);
231229
}
232230

233-
234231
var stopwatch = new Stopwatch();
235232
stopwatch.Start();
236233

@@ -308,7 +305,7 @@ internal async Task ParseDocument()
308305
private string WriteContents(OpenApiDocument document)
309306
{
310307
var outputStream = new MemoryStream();
311-
308+
312309
document.Serialize(
313310
outputStream,
314311
Version,
@@ -318,7 +315,7 @@ private string WriteContents(OpenApiDocument document)
318315
InlineLocalReferences = InlineLocal,
319316
InlineExternalReferences = InlineExternal
320317
});
321-
318+
322319
outputStream.Position = 0;
323320

324321
return new StreamReader(outputStream).ReadToEnd();

0 commit comments

Comments
 (0)