openapi: 3.2.0
info:
  title: Encoding
  version: '1.0'
paths:
  /endpoint/multipart-form-data-ref:
    post:
      operationId: 3ed6d7b4d6050aad4152388e6e154a55
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/MultipartFormData'
            encoding:
              metadata:
                contentType: 'application/xml; charset=utf-8'
              avatar:
                contentType: 'image/png, image/jpeg'
                headers:
                  X-Rate-Limit-Limit: { description: 'The number of allowed requests in the current period', schema: { type: integer } }
      responses:
        '200':
          description: 'All good'
  /endpoint/multipart-form-data-ref-json-content:
    post:
      operationId: 62590046a8aac464222d8c2b19ac4644
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MultipartFormData'
            encoding:
              metadata:
                contentType: 'application/xml; charset=utf-8'
              avatar:
                contentType: 'image/png, image/jpeg'
                headers:
                  X-Rate-Limit-Limit: { description: 'The number of allowed requests in the current period', schema: { type: integer } }
      responses:
        '200':
          description: 'All good'
  /endpoint/multipart-form-data-json-content:
    post:
      operationId: 6208fbaa6292638cc112e0b1d5fd2e3e
      requestBody:
        content:
          application/json:
            schema:
              properties:
                name:
                  type: string
                  format: uuid
                metadata:
                  $ref: '#/components/schemas/EncodingMetadata'
                avatar:
                  type: object
              type: object
            encoding:
              metadata:
                contentType: 'application/xml; charset=utf-8'
              avatar:
                contentType: 'image/png, image/jpeg'
      responses:
        '200':
          description: 'All good'
  /endpoint/bc-encoding-attr:
    post:
      operationId: 93c969c0f67dc55b9f7f88f6e46d4230
      requestBody:
        content:
          multipart/form-data:
            schema:
              properties:
                encname:
                  type: string
              type: object
            encoding:
              encname:
                contentType: application/json
      responses:
        '200':
          description: 'All good'
  /endpoint/bc-encoding-annot:
    post:
      operationId: efe7afb9b99c111a0d781e14982abcdf
      requestBody:
        content:
          multipart-form-data:
            schema:
              properties:
                encname: {  }
              type: object
            encoding:
              encname:
                contentType: application/json
      responses:
        '200':
          description: OK
components:
  schemas:
    EncodingMetadata: {  }
    MultipartFormData:
      properties:
        name:
          type: string
          format: uuid
        metadata:
          $ref: '#/components/schemas/EncodingMetadata'
        avatar: {  }
      type: object
