From 4d6e04acb8bd9b0541ccfa52b2cd1ef3400795a8 Mon Sep 17 00:00:00 2001 From: BlossomiShymae <87099578+BlossomiShymae@users.noreply.github.com> Date: Sat, 10 Aug 2024 05:56:06 -0500 Subject: [PATCH] Fix bug where parameter types weren't correct --- Needlework.Net.Desktop/Needlework.Net.Desktop.csproj | 4 ++-- Needlework.Net.Desktop/ViewModels/OperationViewModel.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj b/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj index 0a4e751..75338ff 100644 --- a/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj +++ b/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj @@ -11,8 +11,8 @@ False app.ico NeedleworkDotNet - 0.2.1.0 - 0.2.1.0 + 0.2.2.0 + 0.2.2.0 False diff --git a/Needlework.Net.Desktop/ViewModels/OperationViewModel.cs b/Needlework.Net.Desktop/ViewModels/OperationViewModel.cs index 3c964d5..02a3935 100644 --- a/Needlework.Net.Desktop/ViewModels/OperationViewModel.cs +++ b/Needlework.Net.Desktop/ViewModels/OperationViewModel.cs @@ -49,7 +49,7 @@ private AvaloniaList GetParameters(IList 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;