on-internet
← Community

MultipartRequest with swagger_dart_code_generator

Stack Overflow ·

I am using swagger_dart_code_generator for my Flutter app to generate code based on an openapi.json. It does its job for application/json requests, however it does not work with multipart/form-data. I am sure that the api works, I tried it from the swagger web ui. In case it helps, here are the relevant parts of the openapi.json: "post": { "operationId": "ImageListApiView_post_images_post", "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ImageMetaForm" } } }, "required": true }, /* ... */ }, "ImageMetaForm": { "properties": { "file": { "descript

Comments

Sign in or sign up to comment and upvote.

No comments yet.