RicoSuter/NSwag

Error creating controller using spec generated with api curio

Open

#2,225 opened on Jun 10, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C# (1,189 forks)batch import
help wantedproject: NSwag.CodeGeneration.CSharp (Controllers)

Repository metrics

Stars
 (6,291 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I've a spec created using api curio (open api 3.0.2) Nswag Studio is failing to create a c# controller because of the "description" inside the paths. Any idea why it is failing?

{ "openapi": "3.0.2", "info": { "title": "Seep.Api", "description": "A Seed api used for testing web api developed using domain driven design approach.", "version": "1.0.0" }, "paths": { "/createorder": { "description": "", "post": { "description": "This end point is used for creating order", "operationId": "createpphysicalinventory", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderCommandRequestViewModel" } } }, "required": true }, "responses": { "200": { "description": "This is the response send back when phsical inventory tasks has been generated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderResponseViewModel" } } } } } } } } }

Contributor guide