RicoSuter/NSwag

Exception occurring during c# client generation using any code generation method

Open

#2885 aperta il 10 giu 2020

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C# (1189 fork)batch import
help wantedtype: bug

Metriche repository

Star
 (6291 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

While generating the c# client for an api an exception occurs. I isolated the smallest section of the API that fails and it can bee seen in the attached "sample-api.txt" file (json) The issue appears related to having an example node under the content type section (application/json) without having an schema node. That particular scenario is not flagged as an error is Swagger and the documentation does not point to schema being a mandatory node. sample-api.txt

Guida contributor