Closed heyligengregory closed 2 years ago
Hi,
I have a generic response type on my endpoints, I was wondering if it's possible to generate api service with this because it needs :
At this time, I have this error :
Error: Couldn't resolve reference #/components/schemas/MyApps.ItemsWithTotalCount%601[[MyApps.Models.DTO.InvoiceDto,%MyApps.Models,%20Version=1.0.0.0,%20Culture=neutral,%20PublicKeyToken=null]]
This is the configuration in swagger :
"responses": { "200": { "description": "Success", "content": { "text/json": { "schema": { "$ref": "#/components/schemas/MyApps.ItemsWithTotalCount``1[[MyApps.Models.DTO.InvoiceDto, MyApps.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" } } } }
Thanks for your feedback
There's no support for generics in the OpenAPI spec.
Hi,
I have a generic response type on my endpoints, I was wondering if it's possible to generate api service with this because it needs :
At this time, I have this error :
Error: Couldn't resolve reference #/components/schemas/MyApps.ItemsWithTotalCount%601[[MyApps.Models.DTO.InvoiceDto,%MyApps.Models,%20Version=1.0.0.0,%20Culture=neutral,%20PublicKeyToken=null]]
This is the configuration in swagger :
"responses": { "200": { "description": "Success", "content": { "text/json": { "schema": { "$ref": "#/components/schemas/MyApps.ItemsWithTotalCount``1[[MyApps.Models.DTO.InvoiceDto, MyApps.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" } } } }
Thanks for your feedback