schemars icon indicating copy to clipboard operation
schemars copied to clipboard

Impl JsonSchema for Date/Time

Open ralpha opened this issue 3 years ago • 2 comments

Rocket uses Date and Time as shown here https://docs.rs/rocket/0.5.0-rc.1/rocket/form/trait.FromFormField.html#impl-FromFormField%3C%27v%3E-for-Date in it internal implementations and exposes them to be used.

Schemars does not implement JsonSchema for them yet. But note that Rocket might update them to time 0.3.2 in the future. So maybe just implement them for 0.3.2 immediately.

ralpha avatar Sep 08 '21 19:09 ralpha

I believe I have this and DateTime implemented on my repo: https://github.com/Plato-solutions/Rocket Not enough time to get pull requests out atm. https://github.com/Plato-solutions/Rocket

ittorchbearer avatar Apr 20 '22 23:04 ittorchbearer

Hello, is this still relevant and something worth creating a PR for? Since Rocket now uses time and also it seems time is a relevant lib again.

kontsaki avatar Mar 27 '23 08:03 kontsaki