Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
deiteris opened this issue Jul 6, 2021 · 0 comments
Open

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

deiteris opened this issue Jul 6, 2021 · 0 comments

Comments

@deiteris
Copy link
Contributor

deiteris commented Jul 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant