advanced-rest-client / api-type-document

⛔️ DEPRECATED This component is being deprecated. Use `api-documentation` instead.
0 stars 2 forks source link

Constraints of scalar array item types are missing #27

Open deiteris opened 3 years ago

deiteris commented 3 years ago

Found during https://github.com/advanced-rest-client/api-type-document/issues/26.

The same RAML, but the string item contains some constraints:

#%RAML 1.0

title: Example API
version: v1
mediaType:
  - application/json

/example:
  get:
    body:
      type: object
      properties:
        customArray:
          type: array
          minItems: 1
          maxItems: 7
          uniqueItems: true
          items:
            type: string
            pattern: ^.*?$
            minLength: 0
            maxLength: 20

Results in no string constraints displayed for the Array of String type in the API console.