Skip to content

uniqueItems validator is run if uniqueItems exists in schema even if set to false #1625

@StevenGranados

Description

@StevenGranados

General information

Having uniqueItems: false in the schema leads to the uniqueItems validator running when it should not.

  • json-editor version: 2.15.1

Expected behavior

uniqueItems: false should not run the validator and should always return valid

Actual behavior

uniqueItems validator is run

Steps to reproduce the behavior

Direct link to example: https://json-editor.github.io/json-editor/?data=N4Ig9gDgLglmB2BnEAuUBXRBTA+vAhgLa75RQBOMARulFsihelgDQgTliHQ5VYBmYcrgAmWADZY6qJqxCZRA/OnFQcAN3zjmDWW0L4AHjjHQAFqgAMbGmQQ5EUUrkJgxqAIxsAxvmwOsJBhYdVwOSCxyKABPAPxybwtGcmY2RDMwAHccSM5yBhAYeDpyfG9YBBA2cO41CD86HANjSXgAcygzHGEysywRVH4tbDZhV1CcIfF/cIhI2HpB4blAwQTcbwRHJem5SDUinEyYETapVBBErG8AayowQyrCzfhxagvBYvxM+i4sAFYnmAqAAra5qcT4aJgWgXeBCAziJ6IK4GVCgGJzC7xUrRJ7oeAwACOzAAknRCAwptgAL5sTpYYgXe5gKCOUoQAAsIBpNKAA

{
  "type": "array",
  "uniqueItems": false
}

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