openapi: 3.1.0
info:
  title: Nullable
  version: '1.0'
paths:
  /api/endpoint:
    get:
      description: 'An endpoint'
      operationId: 4608e00dd49333806891310fdc161547
      responses:
        '200':
          description: OK
components:
  schemas:
    MyDateTime:
      type: string
      format: rfc3339-timestamp
      externalDocs:
        description: '**RFC3339** IETF'
        url: 'https://tools.ietf.org/html/rfc3339'
      example: '2023-08-02T07:06:46+03:30'
    Nullable:
      properties:
        firstname:
          type:
            - string
            - 'null'
        lastname:
          type:
            - string
            - 'null'
        birthdate:
          oneOf:
            -
              $ref: '#/components/schemas/MyDateTime'
            -
              type: 'null'
        otherdate:
          oneOf:
            -
              $ref: '#/components/schemas/MyDateTime'
            -
              type: 'null'
        anotherdate:
          oneOf:
            -
              $ref: '#/components/schemas/MyDateTime'
            -
              type: 'null'
        description:
          type:
              - string
              - 'null'
      type: object
