Skip to content

Nullable type should not appear in array of object type #28

@codeasashu

Description

@codeasashu

steps to reproduce

  1. Add a path
  2. Add response, with object containing string key
  3. try to make string key to nullable
  4. See the resulting schema

Expected

responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  status:
                    type: string
                    nullable: true

Actual

responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  status:
                    type:
                          - string
                          - 'null'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions