Hi when I was trying belowed case I got a ReferenceError: data1 is not defined from my node. It seems that ajv's scheme compiler generates wrong code. When I change schema.foo.bar's type definition or reduce the nesting levels the same error will not occurred again.
Package Versions:
node@v14.16.1
ajv@8.1.0
ajv-errors@3.0.0
Problem
Hi when I was trying belowed case I got a
ReferenceError: data1 is not defined
from my node. It seems that ajv's scheme compiler generates wrong code. When I changeschema.foo.bar
's type definition or reduce the nesting levels the same error will not occurred again.Sincerely hope for replying.