Skip to content

Unable to display Example Value of prefixItems #333

@lynn-beckman

Description

@lynn-beckman

When prefixItems is used in an array definition, the Example Value of the API in the preview page is displayed as null.

type: object
properties:
  items:
    type: array
    description: The actions of the task.
    prefixItems:
      - $ref: './A.yaml'
      - oneOf:
        - $ref: './B.yaml'
        - $ref: './C.yaml'
      - $ref: './D.yaml'
    minItems: 3
    maxItems: 3

The Example Value of the API in the preview page shows:

{
     "itmes": [
        null,
        null,
        null
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions