openapi: 3.0.3
info:
  title: Api Documentation
  description: 'Demo Spring Mvc @DateTimeFormat across the different openapi parameter types'
  version: '1.0'
paths:
  /nullable:
    post:
      description: nullable test
      operationId: nullableTest
      responses:
        204:
          description: processed
        405:
          description: Invalid input
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ObjectWithUniqueItems'

components:
  schemas:
    ObjectWithUniqueItems:
      properties:
        nullSet:
          type: array
          uniqueItems: true
          items:
            type: string
          nullable: true
        notNullSet:
          type: array
          uniqueItems: true
          items:
            type: string
        nullList:
          type: array
          items:
            type: string
          nullable: true
        notNullList:
          type: array
          items:
            type: string
        notNullDateField:
          type: string
          format: date-time
        nullDateField:
          type: string
          format: date-time
