Skip to content

Commit

Permalink
Add additional time types (#275)
Browse files Browse the repository at this point in the history
Duration and Weekday are also serialized as strings, just like OffsetDateTime, Time, etc.
  • Loading branch information
agasparovic authored Jul 28, 2024
1 parent 77079b4 commit d6c3b39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specta/src/type/legacy_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ impl_as!(
time::OffsetDateTime as String
time::Date as String
time::Time as String
time::Duration as String
time::Weekday as String
);

#[cfg(feature = "bigdecimal")]
Expand Down

0 comments on commit d6c3b39

Please sign in to comment.