Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Isssue: #105 , #205
I am not good at English.
If there's anything you don't understand, please leave a comment.
I know swagger and postman support file type.
- Swagger
![스크린샷 2024-09-07 오후 3 06 58](https://private-user-images.githubusercontent.com/102807742/365347160-4febdd8d-93ea-438b-a204-db119092f3f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mzk1NDcsIm5iZiI6MTczOTQzOTI0NywicGF0aCI6Ii8xMDI4MDc3NDIvMzY1MzQ3MTYwLTRmZWJkZDhkLTkzZWEtNDM4Yi1hMjA0LWRiMTE5MDkyZjNmNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwOTM0MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05Mzg3ZDU4OTQ1NDZkMmYxYjU1NGI5ZTMzNmVlNDRjYWJkZTNiNjA5ZDU2OWEzNzgwYmFhODU0MWM4Nzk1MTI4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.OFFmhMqrkK1swLdZj-7Fikki36mqMNB06u5rxV4DDrg)
- Postman
![스크린샷 2024-09-07 오후 3 07 19](https://private-user-images.githubusercontent.com/102807742/365347179-feeea246-1863-4587-be07-038c24cd83de.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mzk1NDcsIm5iZiI6MTczOTQzOTI0NywicGF0aCI6Ii8xMDI4MDc3NDIvMzY1MzQ3MTc5LWZlZWVhMjQ2LTE4NjMtNDU4Ny1iZTA3LTAzOGMyNGNkODNkZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwOTM0MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zYjI4M2JjYzBiNjViN2ZiODJjYzJmMzk4ZGVhZGM5ZGEzYTA3ODIyZDBhZmYwNzY2Mzk1NWMzMDhhNGY0OGFmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.63u8YR2_dDi3EMe4h1lmtg-GvHBXsVUo52EDM2HF95o)
So I wrote the code to implement to support request with file.
RequestModel
Add
requestParts
for multipart request.FileSchema, FormData
Make
FileSchema/FormData
forOpenApiGenerator/PostmanGenerator
to handle spec for file type.In Generator they are added to
RequestModel
andBody