geeklearningio / gl-swagger-generator

Jane - An OpenAPI Specification (formerly Swagger) Client Generator
MIT License
6 stars 1 forks source link

[CSharp] Unsupported Media Type #12

Closed sandorfr closed 7 years ago

sandorfr commented 7 years ago

Currently if the server return an unexpected media type, the client will throw a NullReferenceException. This should return something like a UnexpectedMediaTypeApiException and provide access to the body for logging and debugging purpose.