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

uniqueItems: true is not exposed in generated docs #1353

Closed
freddrake opened this issue Aug 18, 2020 · 2 comments · Fixed by #1423
Closed

uniqueItems: true is not exposed in generated docs #1353

freddrake opened this issue Aug 18, 2020 · 2 comments · Fixed by #1423

Comments

@freddrake
Copy link

For arrays, setting uniqueItems to true is not reflected in the documentation, but should generally be considered important for a reader.

    type: array
    items:
      type: string
      enum:
        - "one"
        - "two"
        - "three"
    minItems: 1
    uniqueItems: true

Screenshot from 2020-08-18 12-27-05

Leaving this to the description leads to inconsistent and insufficient documentation.

@RomanHotsiy
Copy link
Member

Thanks for the issue!

PR would be appreciated!

RomanHotsiy added a commit that referenced this issue Oct 27, 2020
* Add field constraint indicator for uniqueItems

Resolves #1353

* Update src/components/Fields/FieldContstraints.tsx

Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
RomanHotsiy added a commit that referenced this issue Oct 27, 2020
* Add field constraint indicator for uniqueItems

Resolves #1353

* Update src/components/Fields/FieldContstraints.tsx

Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
@freddrake
Copy link
Author

The new version works perfectly for me; thank you!

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