Open keawade opened 2 years ago
Here at https://github.com/pibi/moleculer-json-schema-validator we are using an explicit jsonSchema
property to work around that. Regular schema is handled by fastest-validator as a fallback.
Unfortunately, this module does not work with 0.14.21 (see issue #1106).
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Current Behavior
Custom validators are passed
fastest-validator
schemas by the Moleculer internal services.Expected Behavior
I would expect the Moleculer internal services to handle their own validation and not rely on my custom validator implementation.
Failure Information
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
ServiceBroker
with the custom validatorfastest-validator
param schemas to the custom validatorReproduce code snippet
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
0.14.21
16.14.2
Failure Logs
When using default
strict: true
Ajv configuration.When using the
strict: 'log'
configuration so you can see all the unknown keyword errors emitted.