Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It took a bit of digging to figure out how to enable ajv-errors for the default ajv instance in feathers v5 schema's. To hopefully save someone else 30 minutes, heres how I do it:
I was running into an issue with using ESM modules in nodejs where it was automatically moving all the imports before any code. Pasting this in your index.js will not allow it to be called before your services file is imported, in which case ajv will complain about errorMessage in your schemas and abort your application.
Beta Was this translation helpful? Give feedback.
All reactions