We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi I am getting issue with validation. Below is the error message recieved ,data & validation schema used for it.
My question is the error response clearly says actual & expected are of type object. Why are we still seeing validation error. Please clarify.
Error Response : { valid : false,errors :[ {attribute: "type", property: "field1", expected: "object", actual: "object", message: "field1 is required"},{attribute: "type", property: "field2", expected: "object", actual: "object", message: "field2 is required"}] }
Data - { field1 : "A", field2 : null } ValidationSchema - properties: { field1: { type: 'object', required: true, allowEmpty: false, message: 'Field 1is required', }, field2: { type: 'object', required: true, allowEmpty: false, message: 'Field2 is required', },
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi
I am getting issue with validation. Below is the error message recieved ,data & validation schema used for it.
My question is the error response clearly says actual & expected are of type object. Why are we still seeing validation error. Please clarify.
Error Response : { valid : false,errors :[ {attribute: "type", property: "field1", expected: "object", actual: "object", message: "field1 is required"},{attribute: "type", property: "field2", expected: "object", actual: "object", message: "field2 is required"}] }
Data - { field1 : "A", field2 : null }
ValidationSchema - properties: {
field1: {
type: 'object',
required: true,
allowEmpty: false,
message: 'Field 1is required',
},
field2: {
type: 'object',
required: true,
allowEmpty: false,
message: 'Field2 is required',
},
The text was updated successfully, but these errors were encountered: