Skip to content

Arrays defined using type expression shortcut are not displayed ok #342

Closed
@nmarinel01

Description

@nmarinel01

Develop branch
Having created the following RAML file :

#%RAML 1.0
title: API with types
types:
  Email: # normal object type declaration
    type: object
    properties:
      subject: string
      body: string
  EmailsLong: # array type declaration
    type: array
    items: Email
    minItems: 1
    uniqueItems: true
  EmailsShort: # array type declaration using type expression shortcut
    type: Email[] 
    minItems: 1
    uniqueItems: true
    example: # example that contains array
      - # start item 1
        subject: My Email 1
        body: This is the text for email 1.
      - # start item 2
        subject: My Email 2
        body: This is the text for email 2.
/mail:
  get:
    responses:
      200:
        body:
          application/json:
            type: EmailsShort

At console, EmailsShort type is not displayed correcty and neither its usage at resource response body
image

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions