Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Proptypes validation of shape inside an array #181

Closed
@oswagner

Description

@oswagner

We have an array of objects and when try to validade the shape of the object inside that array, it seems to ignore that validation.

data: PropTypes.arrayOf(PropTypes.shape({
 someValue: PropTypes.bool
})

if we change PropTypes.bool in the sample above for PropTypes.potato, like below:

data: PropTypes.arrayOf(PropTypes.shape({
 someValue: PropTypes.potato
})

We don't receive any kind of message about the error.

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