You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentsv2 and Documentsv3 will fail on runtime as they both try to serialize the body to JSON first before passing it into the StringContent constructor:
It's like that the last 2 requests "forgot" that the schema indirectly demands for binary and not byte. Could you fix this issues or if I get something wrong help me to address to real issuer of the problem?
(I'm really sorry to tell you we need to swallow the 2nd version of file upload generation because the Azure API Management returns it that way no matter if the API behind provides inline or $ref schema types. 😥)
NSwag Studio v13.11.3.0
The text was updated successfully, but these errors were encountered:
aureole82
changed the title
C# client generation doesn't work for file if $ref is used instead of inline schema definition
C# generated client doesn't work for file upload if $ref is used instead of inline schema definition
Jul 1, 2021
aureole82
changed the title
C# generated client doesn't work for file upload if $ref is used instead of inline schema definition
Generated C# client doesn't work for file upload if $ref is used instead of inline schema definition
Jul 1, 2021
Here we have 3 valid OpenApi v3 specifications for a file upload:
Unfortunately only the inline schema definition of
Documentsv1
lets NSwag generate a valid client:Documentsv2
andDocumentsv3
will fail on runtime as they both try to serialize the body to JSON first before passing it into theStringContent
constructor:and
It's like that the last 2 requests "forgot" that the schema indirectly demands for
binary
and notbyte
. Could you fix this issues or if I get something wrong help me to address to real issuer of the problem?(I'm really sorry to tell you we need to swallow the 2nd version of file upload generation because the Azure API Management returns it that way no matter if the API behind provides inline or
$ref
schema types. 😥)NSwag Studio v13.11.3.0
The text was updated successfully, but these errors were encountered: