From cb41433c436c05ee34ca2729e4a3ba6ac7c71973 Mon Sep 17 00:00:00 2001 From: Marcell Toth Date: Wed, 4 Mar 2020 14:07:59 +0100 Subject: [PATCH 1/2] feat: add option to generate HttpClient based C# snippet --- src/components/RequestMaker/Request/httpSnippetLanguages.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/RequestMaker/Request/httpSnippetLanguages.tsx b/src/components/RequestMaker/Request/httpSnippetLanguages.tsx index 5c4ba5012..0604f75bc 100644 --- a/src/components/RequestMaker/Request/httpSnippetLanguages.tsx +++ b/src/components/RequestMaker/Request/httpSnippetLanguages.tsx @@ -111,6 +111,10 @@ export const languages: IHttpSnippetLanguage[] = [ name: 'C#', mode: 'csharp', codechoice: 'csharp', + libraries: [ + { name: 'HttpClient', librarychoice: 'httpclient' }, + { name: 'RestSharp', librarychoice: 'restsharp' }, + ], }, { name: 'Obj-C', From 6803231198af9f98e810e429d247c513bd76f425 Mon Sep 17 00:00:00 2001 From: Marcell Toth Date: Thu, 5 Mar 2020 17:57:28 +0100 Subject: [PATCH 2/2] feat: update httpsnippet version --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index a4d1a01a0..8f66f4373 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7185,7 +7185,7 @@ fork-ts-checker-webpack-plugin@1.5.0: tapable "^1.0.0" worker-rpc "^0.1.0" -form-data@^3: +form-data@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.0.tgz#31b7e39c85f1355b7139ee0c647cf0de7f83c682" integrity sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg== @@ -8099,13 +8099,13 @@ https-proxy-agent@^5.0.0: "httpsnippet@github:stoplightio/httpsnippet#master": version "1.19.1" - resolved "https://codeload.github.com/stoplightio/httpsnippet/tar.gz/629566cbf80bc61e86c6784adf3014e997600824" + resolved "https://codeload.github.com/stoplightio/httpsnippet/tar.gz/43eb97f4e7fc9e6b5f9b4ace3be5c02c74348998" dependencies: chalk "^1.1.1" commander "^2.9.0" debug "^2.2.0" event-stream "3.3.4" - form-data "^3" + form-data "3.0.0" fs-readfile-promise "^2.0.1" fs-writefile-promise "^1.0.3" har-validator "^5.0.0"