Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

correct RestSharp snippets (return type and Method enum)#366

Merged
filfreire merged 1 commit intoKong:masterKong/httpsnippet:masterfrom
michaelgwelch:fix365michaelgwelch/httpsnippet:fix365Copy head branch name to clipboard
Oct 1, 2024
Merged

correct RestSharp snippets (return type and Method enum)#366
filfreire merged 1 commit intoKong:masterKong/httpsnippet:masterfrom
michaelgwelch:fix365michaelgwelch/httpsnippet:fix365Copy head branch name to clipboard

Conversation

@michaelgwelch
Copy link
Contributor

@michaelgwelch michaelgwelch commented Sep 15, 2024

Ensure that code snippets use enum members that are pascal cased and not upper cased. For example use Method.Get instead of Method.GET to ensure the snippets can compile.

Also removes usage of unknown type IRestResponse

fixes #365 #367 #312

@CLAassistant
Copy link

CLAassistant commented Sep 15, 2024

CLA assistant check
All committers have signed the CLA.

@michaelgwelch michaelgwelch changed the title correct the casing of Method enums in RestSharp snippets correct RestSharp snippets (return type and Method enum) Sep 15, 2024
src/targets/csharp/restsharp/client.ts Outdated Show resolved Hide resolved
Ensure that code snippets use enum members that are pascal cased and
not upper cased. For example use `Method.Get` instead of `Method.GET` to
ensure the snippets can compile.

fixes Kong#365

use `var` for return "type" of RestSharp request response

The type `IRestResponse` doesn't exist in latest client (version 112)

fixes Kong#367
@filfreire filfreire merged commit d107479 into Kong:master Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSharp RestSharp snippets don't generate valid members of RestSharp.Method enum

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.