Inconsistency between parsing and coercions for datetimes #8
Labels
coercions
Issue or PR relating to valkyrie coercions
enhancement
New feature or request
help wanted
Extra attention is needed
Milestone
Firstly, thank you for the package; it seems to be a great help to package authors.
However, I encountered an issue when using coercions with
datetime
objects. Thedate
schema function accepts anydatetime
object (even time only), while the coercion only works for actual dates, without a time component. I think it would be best to split this into three different types, according to the amount of precision: dates, times, and datetimes. Then each of those could have separate schema and coercion functions.What do you think?
The text was updated successfully, but these errors were encountered: