Closed PatrickHeneise closed 5 years ago
I think it should be submitted to fastify rather than here - most likely it simply doesn't support $merge. Also, fastify seems to use its own instance of ajv that doesn't have $merge added to it. Either fastify needs to add $merge to the instance or you need to pass your own instance (and it still doesn't mean $merge would work for anything but simple validation).
Thanks, I'll check there.
I'm trying to put this together with fastify. I added ajv-merge-path as described in the docs into the validation (https://github.com/fastify/fastify/blob/master/lib/validation.js#L157)
example case:
schemas/defs.json
schemas/foo.json
properties
directly tofoo
, everything works as expected, so the $merge doesn't work.Any ideas how I can make this work?