You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValidationError: Path `field` is required.
at model.Document.invalidate (/Users/glavin/Development/repo/node_modules/mongoose/lib/document.js:1009:32)
at /Users/glavin/Development/repo/node_modules/mongoose/lib/document.js:958:16
at validate (/Users/glavin/Development/repo/node_modules/mongoose/lib/schematype.js:610:7)
at /Users/glavin/Development/repo/node_modules/mongoose/lib/schematype.js:627:9
at Array.forEach (native)
at SchemaString.SchemaType.doValidate (/Users/glavin/Development/repo/node_modules/mongoose/lib/schematype.js:614:19)
at /Users/glavin/Development/repo/node_modules/mongoose/lib/document.js:956:9
at process._tickCallback (node.js:415:13)
Should be:
{
errors: [{"ValidationError: Path `isolationPoint` is required., Path `tagNum` is required., Path `asset` is required."
}]}
The text was updated successfully, but these errors were encountered:
I've started working on making this adapter compatible with feathers v1.0. As part of that it now uses feathers.errors. I created an issue in feathers-errors so that it can handle an errors object and spit out the errors properly in JSON.
I have now fixed this in the 1.0-compatibility branch in conjunction with the feathers-errors v0.2.0 release. Will formally close the issue when the branch lands.
Error:
Should be:
The text was updated successfully, but these errors were encountered: