new ValidationError(name, badValue, errors, expectedSchema)
Parameters:
Name | Type | Description |
---|---|---|
name |
string | a user-provided name describing the schema |
badValue |
* | the value which did not validate |
errors |
Object | how badValue failed to conform to the schema |
expectedSchema |
Object | The JSON schema used in schema validation |