Skip to content

When property is not getting added when Yup to Json #16

@skshivu

Description

@skshivu

HI Team,

I am trying to get the below Json format

"RegistrationNumber": {
"type": "string",
"when": {
"SearchRegoOrManual": { "is": "RegistrationNumber", "then": { "required": true } },
},
}

by using yup.string().when("SearchRegoOrManual", {is: "RegistrationNumber". then : yup.number().required() })

but in the output we are getting the expected output.

Please help

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