cdwv / oas3-api-snippet-enricher

Enrich your OpenAPI 3.0 JSON with code samples
MIT License
90 stars 13 forks source link

Code samples do not generate parameters for multipart/form-data #18

Open ebrake opened 2 years ago

ebrake commented 2 years ago

When doing this

requestBody:
    content:
      multipart/form-data:

Instead of this

requestBody:
    content:
      application/json:

Specified fields from the schema are not generated in the code samples

E.g. all I get is this, with no fields:

curl --request POST \
  --url $URL \
  --header 'content-type: multipart/form-data'
arlington6988 commented 2 years ago

+1