Skip to content

minItems, maxItems and RAML's uniqueItems are missing #26

Description

@deiteris

minItems, maxItems and uniqueItems aren't displayed in the API Console.

The following RAML reproduces the issue:

#%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

The properties appear correctly in AMF graph under shacl:minCount, shacl:maxCount and raml-shapes:uniqueItems.

I may suggest the following fix deiteris@aa2bc69, but I see that Namespace.js in amf-helper-mixin lacks some properties, so the issue is a bit more complex.

After the fix, the declared array property looks as follows:
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions