Skip to content

RAML 1.0 array types not working #300

@sichvoge

Description

@sichvoge

The following example does not work with the current version (master) of the API Console.

#%RAML 1.0
title: Array does not work API
version: 1.0
mediaType:  application/json

types:
  ORX_ARRAY:
    type: array
    items: string
    minItems: 1



/cmt:
  get:
    queryParameters:
      details:
        displayName: details
        type: string
        required: false
      modemCount:
        displayName: modemCount
        type: string
        required: false
      orx:
        description: List ORX type.
        type: ORX_ARRAY
        required: false
    responses:
      200:
        body:
          application/json:

First the following is what I get when trying to provide information inside the console:

image

I am providing a single string and get invalid type. Putting the string into quotes lets the error message disappear. Providing an array like [ "hello", "world" ] I get the following response:

{
  "error": "query parameters: orx: unknown type string[]"
}

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