Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSharp RestSharp snippets use a type IRestResponse which is not valid #367

Closed
michaelgwelch opened this issue Sep 15, 2024 · 0 comments
Closed

Comments

@michaelgwelch
Copy link
Contributor

Perhaps this is related to changes in the library but this line of code

IRestResponse response = client.Execute(request);

no longer compiles with latest version of RestSharp.

I recommend just changing to

var response = client.Execute(request);

and will submit a PR

michaelgwelch added a commit to michaelgwelch/httpsnippet that referenced this issue Sep 15, 2024
The type `IRestResponse` doesn't exist in latest client (version 112)

fixes Kong#367
michaelgwelch added a commit to michaelgwelch/httpsnippet that referenced this issue 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.

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
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

No branches or pull requests

1 participant