Skip to content

Seeing "Invalid type" for custom types in query string params #270

@marshall007

Description

@marshall007
#%RAML 1.0
title: test-api
mediaType: application/json
baseUri: ...

types:
  code:
    type: string
    pattern: ^[A-Z\-]+$
    minLength: 3
    maxLength: 50

/contracts:
  get:
    queryParameters:
      lab_code: code
      institutution_code: code
      active: boolean

screen shot 2016-04-15 at 6 28 01 pm

Validation appears to work correctly if I switch to using inline type declarations:

/contracts:
  get:
    queryParameters:
      lab_code:
        type: string
        pattern: ^[A-Z\-]+$
        minLength: 3
        maxLength: 50

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions