Skip to content

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

Merged
filfreire merged 1 commit into
Kong:masterfrom
michaelgwelch:fix365
Oct 1, 2024
Merged

correct RestSharp snippets (return type and Method enum)#366
filfreire merged 1 commit into
Kong:masterfrom
michaelgwelch:fix365

Conversation

@michaelgwelch

@michaelgwelchmichaelgwelch commented Sep 15, 2024

Copy link
Copy Markdown
Contributor

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

CLAassistant commented Sep 15, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@michaelgwelchmichaelgwelch changed the title correct the casing of Method enums in RestSharp snippetscorrect RestSharp snippets (return type and Method enum)Sep 15, 2024
Comment threadsrc/targets/csharp/restsharp/client.ts Outdated
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.
fixesKong#365
use `var` for return "type" of RestSharp request response
The type `IRestResponse` doesn't exist in latest client (version 112)
fixesKong#367
@filfreire
filfreire merged commit d107479 into Kong:masterOct 1, 2024
Sign up for freeto 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

@michaelgwelch@CLAassistant@filfreire