Closed
Description
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