Skip to content

[[False], [0]] should be considered unique #686

@Zac-HD

Description

@Zac-HD
jsonschema.validate([[False], [0]], {'type': 'array', 'uniqueItems': True})

fails, though the inner lists should be considered distinct due to the different types of their values. (though all numbers are considered the same type, so [[0], [0.0]] should and does fail to validate)

This should probably go in the upstream test suite as well. Checked on version 3.2.0.

(sorry for the short report, found this just as I was heading to bed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething doesn't work the way it should.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions