file upload, multipart/form-data content validation problem

Đang mở
#809 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
openapi, typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

Start by examining how openapi-backend validates an operation's request body and how its OpenAPI schema validation handles the supplied multipart/form-data definition. The issue names no source files or tests, so locate the relevant validation entry point and existing request-body tests. Done means this valid upload definition no longer triggers the reported missing requestBody validation error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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'

Ngôn ngữ chính
TypeScript
Star
689
Fork
97
Merge trung bình
2 giờ 36 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openapistack/openapi-backend

Tất cả issue của openapistack/openapi-backend

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.