openapi-backend icon indicating copy to clipboard operation
openapi-backend copied to clipboard

file upload, multipart/form-data content validation problem

Open erdemsarigh opened this issue 4 months ago • 0 comments

Hi, is there any way to use multipart/form-data: content type to upload files? i am getting validation error like :

{ "instancePath": "", "schemaPath": "#/required", "keyword": "required", "params": { "missingProperty": "requestBody" }, "message": "must have required property 'requestBody'" }

my openapi yaml file is /1/uploadDocuments: post: deprecated: false operationId: uploadDocumentsPOST parameters: [] requestBody: required: true content: multipart/form-data: schema: type: object properties: filedata: type: string format: binary description: 'yüklenicek dosya' example: 'document.pdf'

erdemsarigh avatar Oct 24 '25 12:10 erdemsarigh