geeklearningio / gl-swagger-generator

Jane - An OpenAPI Specification (formerly Swagger) Client Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Csharp] Exception and status code support

sandorfr opened this issue · comments

In addition to error response status, template will accept an option useOkSchema to indicate that all responses should provide the same schema as OK.

 "templateOptions": {
                "clientName": "myClient",
                "projectGuid": "someGuid",
                "rootNamespace": "My.Client.Namespace",
                "operation": {
                    "onError": {
                        "useOkSchema": true
                    }
                }
            }