GREsau / schemars

Generate JSON Schema documents from Rust code
https://graham.cool/schemars/
MIT License
797 stars 223 forks source link

Fix schemas for bigdecimal/rust_decimal #248

Closed GREsau closed 1 year ago

GREsau commented 1 year ago

Both of these crates serialise decimals as strings, not as plain numbers.

Half-fixes #123 - there's not yet a good way to handle different schemas for serialization vs deserialization, so this PR just makes the schemas match how these types are serialized (numeric strings).