Skip to content

Problem with validating an enumeration of objects #223

@ekzobrain

Description

@ekzobrain

According to JSONSchema spec enum may be a list of any allowed type, so it may even be a list of objects/arrays. Currently enum check is performed just with value.include?(instance), so this will never validate successfully for a list of objects. Does the spec describe any way of validating this or may be there are any practical community discussions and approaches around it? I think it should be implemented some (may be custom if there's no approach to borrow) way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions