swagger-api / swagger-api/swagger-parser
Parsing multipart/form-data body
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 867
- Forks
- 560
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 7
Description
Hi,
I'm using swagger-parser 2.1.23 to parse an openapi 3.1.0 yaml file.
I have a request with multipart/form-data body to upload a file:
requestBody schema is parsed as JsonSchema:
Request body is rendered as JSON in swagger UI:
What can I do to get a "upload button" displayed in here.
Thank you in advance
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with swagger-parser 2.1.23 using the provided OpenAPI 3.1.0 YAML and inspect the requestBody schema for multipart/form-data. Compare the parsed JsonSchema with the file-upload definition; done means the multipart request is preserved well enough for Swagger UI to display an upload button.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api, backend-api-design
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100