-
Notifications
You must be signed in to change notification settings - Fork 640
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
[Objection 3.0] unknown format "iso-date-time" ignored in schema at path #2147
Comments
I think this is more an Ajv issue than objection issue. I don't know why that's happening. |
@koskimas Understood. I used I will try to find out what's going on with |
It seems |
helpful if you DONT want to convert your date into a string |
For anyone wondering, if you go down the route of adding the ajv-formats package and creating a property with Wasn't obvious to me so thought I'd add a note. |
I updated to the latest objection and realized I had to change some models to avoid type errors (for example
date
is now an invalid type in the json schema). I saw #2142 and updated my code to useajv-formats
package. But I am still getting this error:iso-date-time
is in the list of supported formats according to https://ajv.js.org/packages/ajv-formats.html#formatsAny idea what I am doing wrong?
Here is what my model looks like:
base-model.js
user-setting.js
The text was updated successfully, but these errors were encountered: