Open 23Skidoo opened 2 years ago
Current behaviour:
> ~D[2021-01-01] |> Jason.encode! |> Spect.to_spec!(Date) ** (Spect.ConvertError) expected: map, found: "\"2021-01-01\"" (spect 0.4.1) lib/spect.ex:443: Spect.to_map!/4
Would be nice if it tried to convert the date string to a Date.t() instead of failing immediately.
Date.t()
The existing support for DateTime.t() doesn't work for literals either - only nested data, but doing the same for Date.t() would be enough for my use case.
DateTime.t()
Current behaviour:
Would be nice if it tried to convert the date string to a
Date.t()
instead of failing immediately.