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 problem do you want to solve?
The JTD timestamp type currently accepts both Date objects and properly-formatted strings. I'd like to be able to restrict this to just Dates.
What do you think is the correct solution to problem?
Perhaps a new option?
Something like
typeJtdTimestampOption="dateObject"|"isoString"|"both";// then add to JTDOptions e.g.:
timestampAccepts?: JtdTimestampOption
What version of Ajv you are you using?
8.0.5
What problem do you want to solve?
The JTD timestamp type currently accepts both Date objects and properly-formatted strings. I'd like to be able to restrict this to just Dates.
What do you think is the correct solution to problem?
Perhaps a new option?
Something like
With a default of "both".
Will you be able to implement it?
I think so.
Related: ajv-validator/ajv-keywords#166
The text was updated successfully, but these errors were encountered: