Closed jamauro closed 1 year ago
When I attempt to pass in other data to the ValidationError, I'm seeing a check failure:
check
Match error: Unknown key in field [0].message
throw new ValidationError([{name: 'test', type: 'invalid type', message: 'testing'}]);
What's weird is that I thought I had seen this work properly previously.
Oh I think I figured it out. You need to pass in a details object alongside name and type. That object can contain arbitrary key value pairs. Will submit an update to the documentation.
details
name
type
When I attempt to pass in other data to the ValidationError, I'm seeing a
check
failure:What's weird is that I thought I had seen this work properly previously.