Skip to content

Required not working in parent properties #450

@franciscopuyo

Description

@franciscopuyo

Hi, I created a form using the following schema (not exactly this but I created this to exemplify the error)

{
    "type": "object",
    "properties": {
        "name": {
        "type":"string",
        "minLength": 3
        },
        "id": {
        "type":"object",
        "properties":{
            "dni": {
                "type":"number"
            },
            "country": {
                "type":"string",
                "minLength": 5
            }
        },
        "required": ["dni","country"]
        },
    "required":["name"]
    }
}

The fact is that the form doesn't validate the name field. It seems that the module doesn't "understand" the last required attribute. In the child attribute id, It does validate both fields (country and dni).

Anything you need tell me,

Francisco

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