openapi: '3.0.0'
info:
  title: Multipart Formdata
  version: 0.0.1
paths:
  /person:
    post:
      description: Sending data using `multipart/form-data`
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                photoPart:
                  type: string
                  format: binary
                namePart:
                  type: object
                  description: |
                    `firstName` and `lastName` of the person
                  properties:
                    firstName:
                      type: string
                    lastName:
                      type: string
                agePart:
                  type: integer
                  default: 21
                  description: 'Age of the person'
                contactPart:
                  type: object
                  properties:
                    email:
                      type: string
                    phone:
                      type: string
  /person2:
    post:
      description: Sending data using `multipart/form-data`
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                photoPart:
                  type: string
                  format: binary
                namePart:
                  type: object
                  description: |
                    `firstName` and `lastName` of the person
                  properties:
                    firstName:
                      type: string
                    lastName:
                      type: string
                hobbyPart:
                  type: string
                  description: 'Hobby of the person'
                contactPart:
                  type: object
                  properties:
                    email:
                      type: string
                    phone:
                      type: string