From 255ae1f5a6ff2a892d55aed03db8ef27d10e06eb Mon Sep 17 00:00:00 2001 From: jkone27 Date: Mon, 24 Apr 2023 11:50:59 +0200 Subject: [PATCH 1/3] todo update test to match expectations --- tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs b/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs index 5a4eeae..925e2cd 100644 --- a/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs +++ b/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs @@ -8,3 +8,5 @@ let Schema = __SOURCE_DIRECTORY__ + "/../Schemas/v3/issue219.yaml" type AcmeApi = OpenApiClientProvider let inst = AcmeApi.Client() + +let x = "TODO" From 90831fed504e942132b723d78eb04dd90024593c Mon Sep 17 00:00:00 2001 From: jkone27 Date: Mon, 24 Apr 2023 12:20:07 +0000 Subject: [PATCH 2/3] updated test to check response type of task --- .../SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs b/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs index 925e2cd..1f8b44e 100644 --- a/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs +++ b/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs @@ -9,4 +9,8 @@ type AcmeApi = OpenApiClientProvider let inst = AcmeApi.Client() -let x = "TODO" +let askDetailRequest = new AcmeProv.AskDetailRequest(11) + +let typedTask = inst.AskDetail(askDetailRequest: AcmeProv.AskDetailRequest) + +typedTask.GetType().FullName.Contains("AskDetailResponse") From 188bdfb22db9e055526559796f0cba7751ad7928 Mon Sep 17 00:00:00 2001 From: jkone27 Date: Mon, 24 Apr 2023 15:10:56 +0000 Subject: [PATCH 3/3] fix naming --- tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs b/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs index 1f8b44e..7f165e8 100644 --- a/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs +++ b/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0219.Tests.fs @@ -9,8 +9,8 @@ type AcmeApi = OpenApiClientProvider let inst = AcmeApi.Client() -let askDetailRequest = new AcmeProv.AskDetailRequest(11) +let askDetailRequest = new AcmeApi.AskDetailRequest(11) -let typedTask = inst.AskDetail(askDetailRequest: AcmeProv.AskDetailRequest) +let typedTask = inst.AskDetail(askDetailRequest: AcmeApi.AskDetailRequest) typedTask.GetType().FullName.Contains("AskDetailResponse")