Skip to content

Commit

Permalink
Fix bug where parameter types weren't correct
Browse files Browse the repository at this point in the history
  • Loading branch information
BlossomiShymae committed Aug 10, 2024
1 parent dc538ee commit 4d6e04a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Needlework.Net.Desktop/Needlework.Net.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<AvaloniaXamlIlDebuggerLaunch>False</AvaloniaXamlIlDebuggerLaunch>
<ApplicationIcon>app.ico</ApplicationIcon>
<AssemblyName>NeedleworkDotNet</AssemblyName>
<AssemblyVersion>0.2.1.0</AssemblyVersion>
<FileVersion>0.2.1.0</FileVersion>
<AssemblyVersion>0.2.2.0</AssemblyVersion>
<FileVersion>0.2.2.0</FileVersion>
<AvaloniaXamlVerboseExceptions>False</AvaloniaXamlVerboseExceptions>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Needlework.Net.Desktop/ViewModels/OperationViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private AvaloniaList<ParameterViewModel> GetParameters(IList<OpenApiParameter> p
foreach (var parameter in parameters)
{
if (parameter.In != location) continue;
pathParameters.Add(new ParameterViewModel(parameter.Name, parameter.Schema.Type, parameter.Required));
pathParameters.Add(new ParameterViewModel(parameter.Name, GetSchemaType(parameter.Schema), parameter.Required));
}

return pathParameters;
Expand Down

0 comments on commit 4d6e04a

Please sign in to comment.