A humble wishlist for C# SDK generation #7
JasonLandbridge
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Speakeasy SDK feature improvements:
NOTE: These are the settings that were used: gen.yaml
Give every request/response object the same interface with shared properties, which can then be used to write extension methods for more easily.
IBaseResponseinterface. I'm writing some wrappers/extension methods for converting responses and I have to rely on reflection as there is no common parent for all responses/requests.Use System.Text.Json instead of the outdated Newtonsoft.Json.
Provide a typesafe way for every endpoint to show what exceptions are expected based on the possible responses in the spec.
Provide an option to disable throwing exceptions when a request fails (non-success status code) and instead return the HttpResponseMessage.
C# SDK generation is missing the header for "Accept: application/json", which is present in Typescript SDK but missing everywhere in the C# SDK, Example. This is when the only expected response for an endpoint is "application/json"
Please add a URL link to the changelog when there is an update in the CLI, I honestly couldn't find it by going through the website

I can think of some more and I am happy to provide more information when needed.
Cheers!
All reactions