New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strict mode: unknown keyword: "format" #50
Comments
Sorry, I'm afraid I will not be able to help you. I'm just a consumer of this library as well and have moved on to another project in the meantime. Your code seems correct to me, though. So maybe it is something with the version? |
@bestickley I believe you could just put "format" inside "metadata" member - JTD only allows extensions in this way, as they are no-op in this way. If this does not work, please put pure JavaScript example in runkit so I can investigate. Edit: ignore that, it's already inside... not sure, it does look correct. Please make a runnable example in runkit. Could be a version problem indeed... |
@riker09, no problem. |
Also according to docs: I decided to add import Ajv from "ajv/dist/jtd";
import addKeyword from "ajv-keywords";
export const ajv = new Ajv({
parseDate: true,
});
ajv.addKeyword("description");
addKeyword(ajv, ["regexp"]); |
Hello, I'm using ajv@8.8.2 and ajv-formats@2.1.1 in an AWS Lambda (Node.js 14) and I'm getting this error:
Here is the function:
Does anyone know what's going on? Thank you!
The text was updated successfully, but these errors were encountered: