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
What version of Ajv are you using? Does the issue happen if you use the latest version?
v8.17.1
Currently, I am using "validate" function in a user defined keyword, which works fine but which needs to be replaced with "code" function as I am moving the schema compilation to build time due to CSP Exceptions in runtime like mentioned here https://ajv.js.org/standalone.html. AJV standalone validation code with user defined keywords supports only "code" and "macros" functions, and I have few custom keywords in my application. I am a bit struggling in replacing the "validate" function as not sure how to read the data and do the comparison like below.
What version of Ajv are you using? Does the issue happen if you use the latest version?
v8.17.1
Currently, I am using "validate" function in a user defined keyword, which works fine but which needs to be replaced with "code" function as I am moving the schema compilation to build time due to CSP Exceptions in runtime like mentioned here https://ajv.js.org/standalone.html. AJV standalone validation code with user defined keywords supports only "code" and "macros" functions, and I have few custom keywords in my application. I am a bit struggling in replacing the "validate" function as not sure how to read the data and do the comparison like below.
Schema:
Current: working keyword "compareDates"
Required:
context screenshot:
The text was updated successfully, but these errors were encountered: