как отправить массив в почтальон и получить в правильном виде в OpenApi3.0 - PullRequest
0 голосов
/ 23 марта 2020

Я пытаюсь отправить массив через form-data в почтальоне и получить информацию в схеме, используя openapi3.0 в python, но я получаю эту ошибку в почтальоне и, честно говоря, я не знаю, что я Плохо, любая помощь приветствуется. postman_example

    openapi: 3.0.0
      version: 0.0.1
    servers:
      - url: https://localhost:3005
    components:
      schemas:
        email:
          type: object
          properties:
            receivers:
              type: array
              items:
                type: string
            header:
              type: string
            message:
              type: string
            file1:
              type: string
              format: binary
            file2:
              type: string
              format: binary
 paths:
    /api/email/{id}:
    post:
      tags:
      - email data
      summary: Send a email
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/email'
      operationId: routes.email.route_send_email
      parameters:
      - name: id
        in: path
        description: sender company ID
        required: true
        schema:
          type: string
      responses:
        200:
          description: Everything is ok
        500:
          description: there was an error starting the facial recognition system
...