Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi.Workbench/MainModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/// <summary>
/// Default version.
/// </summary>
private OpenApiSpecVersion _version = OpenApiSpecVersion.OpenApi3_0;
private OpenApiSpecVersion _version = OpenApiSpecVersion.OpenApi3_2;

private static readonly HttpClient _httpClient = new();

Expand Down Expand Up @@ -211,7 +211,7 @@
/// The core method of the class.
/// Runs the parsing and serializing.
/// </summary>
internal async Task ParseDocumentAsync()

Check warning on line 214 in src/Microsoft.OpenApi.Workbench/MainModel.cs

View workflow job for this annotation

GitHub Actions / Build

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 214 in src/Microsoft.OpenApi.Workbench/MainModel.cs

View workflow job for this annotation

GitHub Actions / Build

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
{
Stream stream = null;
try
Expand Down
5 changes: 3 additions & 2 deletions src/Microsoft.OpenApi.Workbench/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
</StackPanel>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Label>Version:</Label>
<RadioButton GroupName="Format" Content="V3.1.1" Padding="5" Height="24" VerticalAlignment="Top" IsChecked="{Binding IsV3_1}" />
<RadioButton GroupName="Format" Content="V3.0.4" Padding="5" Height="24" VerticalAlignment="Top" IsChecked="{Binding IsV3_0}" />
<RadioButton GroupName="Format" Content="V3.2" Padding="5" Height="24" VerticalAlignment="Top" IsChecked="{Binding IsV3_2}" />
<RadioButton GroupName="Format" Content="V3.1" Padding="5" Height="24" VerticalAlignment="Top" IsChecked="{Binding IsV3_1}" />
<RadioButton GroupName="Format" Content="V3.0" Padding="5" Height="24" VerticalAlignment="Top" IsChecked="{Binding IsV3_0}" />
<RadioButton GroupName="Format" Content="V2.0" Padding="5" Height="24" VerticalAlignment="Top" IsChecked="{Binding IsV2_0}" />
</StackPanel>
<CheckBox Name="InlineLocal" Content="Inline Local" IsChecked="{Binding InlineLocal}" />
Expand Down
Loading