Commit graph

489 commits

Author SHA1 Message Date
Graham Esau
bbedf130ce Include Cargo.lock file in git
This should make builds (especially for MSRV) much more stable, at the cost of no longer testing schemars compatibility with new dependency versions.
2024-04-28 18:56:06 +01:00
Graham Esau
9501fe319f Update to syn 2 and serde_derive_internals 0.29 2024-04-28 18:56:06 +01:00
Graham Esau
e04e3a3a81 v0.8.16 2023-11-11 20:35:26 +00:00
Graham Esau
ae9544aaf9 Put schema value into a variable before calling apply_metadata
This reduces size of MIR output, which should somewhat mitigate #246
2023-11-11 20:28:10 +00:00
Graham Esau
9415fcb57b v0.8.15 2023-09-17 21:13:54 +01:00
Graham Esau
a8d723342f Cleanup and test updates for bigdecimal04 2023-09-17 21:10:22 +01:00
Adam Chalmers
cc28738f41
Support bigdecimal 0.4 (#237) 2023-09-17 21:05:21 +01:00
Graham Esau
0084f1a655 v0.8.14 2023-09-17 20:56:13 +01:00
Graham Esau
6e3248f830 Fix bad merge 2023-09-17 20:53:10 +01:00
Graham Esau
a136277f60 Update docs for schema_id() 2023-09-17 20:51:37 +01:00
Graham Esau
28258ae99b Update changelog 2023-09-17 20:40:19 +01:00
Graham Esau
342b2dff33
Add schema_id(), handles different types with the same name (#247) 2023-09-17 20:36:52 +01:00
Graham Esau
53bb51cb25 Update changelog 2023-09-17 20:35:16 +01:00
Graham Esau
db1dd47039
Fix schemas for bigdecimal/rust_decimal (#248)
Both of these crates serialise decimals as strings, not as plain numbers
2023-09-17 20:31:24 +01:00
Jakub Jirutka
a5e51b22b3
Add #[schemars(inner(...)] attribute to specify schema for array items (#234) 2023-09-09 13:35:53 +01:00
Graham Esau
30e513ac14
Use feature resolver version 2 2023-09-09 13:32:54 +01:00
Graham Esau
27469ab32b Update changelog for 0.8.13 2023-08-28 21:20:24 +01:00
Graham Esau
6931d70e0a v0.8.13 2023-08-28 21:19:01 +01:00
Graham Esau
e0c867cd6a Forward RawValue's JsonSchema impl to Value 2023-08-28 12:29:36 +01:00
Graham Esau
c487bbb9e7 Update docs and changelog 2023-08-28 12:29:36 +01:00
Łukasz Biel
cb392d1829 Cover serde_json RawValue type by schemars 2023-08-28 12:29:36 +01:00
Graham Esau
5836afbd64 Update docs and changelog 2023-08-27 23:01:12 +01:00
David Knaack
aeb989486e Add support for indexmap v2 2023-08-27 23:01:12 +01:00
Graham Esau
5dbfa49c5e Update MSRV to 1.60 2023-08-27 23:01:12 +01:00
Graham Esau
37478d764e
Support types with const generics (#239)
Co-authored-by: Spencer Sharkey <spsharkey@tesla.com>
2023-08-27 20:50:20 +01:00
Graham Esau
0303f0334e
add support for semver crate (#238)
---------

Co-authored-by: Omar Tawfik <15987992+OmarTawfik@users.noreply.github.com>
2023-08-27 20:00:36 +01:00
Graham Esau
1ac9d19a24 Don't duplicate entire README in doc comment 2023-08-20 18:14:04 +01:00
Graham Esau
3d56977ecf Update to rust 2021 edition 2023-08-20 18:14:04 +01:00
Graham Esau
072730f6f6 Resolve clippy warnings 2023-08-20 18:14:04 +01:00
Graham Esau
e0495c0c87 Update MSRV to 1.56 2023-08-20 18:14:04 +01:00
Graham Esau
386e3d7f5a v0.8.12 2023-02-26 21:00:48 +00:00
Simon Warta
9dc816fafc Set a reasonable min version for serde_json
serde_json 1.0.25 brings in the json! macro that is used here
(https://github.com/serde-rs/json/releases/tag/v1.0.25)
2023-02-26 20:09:18 +00:00
Graham Esau
824993ca76 Apply clippy fixes 2023-02-26 19:59:17 +00:00
Graham Esau
39bae201eb Run cargo fmt 2023-02-26 19:47:10 +00:00
Gleb Pomykalov
587176fe9f
add optional smol_str support (#72)
Co-authored-by: Graham Esau <gesau@hotmail.co.uk>
2023-02-26 19:42:16 +00:00
Graham Esau
73715c10e0 Fix GH actions badge 2023-02-26 19:10:21 +00:00
Graham Esau
b13fcd15cf Fix rustc 1.45 CI 2023-02-26 19:05:45 +00:00
Graham Esau
5268080b01 v0.8.11 2022-10-02 20:01:43 +01:00
Graham Esau
84c2a2bb54 Second attempt to fix rust 1.45 CI 2022-10-02 19:59:54 +01:00
Graham Esau
cf0cf2b1be Attempt to fix rust 1.45 CI 2022-10-02 19:56:06 +01:00
Graham Esau
4f14c1a74c Update docs and changelog 2022-10-02 19:46:29 +01:00
Graham Esau
c59e5b5e1c Fix test 2022-10-02 19:46:29 +01:00
Graham Esau
4754a13fb3 Ignore bound set in serde attrs 2022-10-02 19:46:29 +01:00
Graham Esau
104dccca50 Add #[schemars(bound = ...)] attribute
Based on https://github.com/GREsau/schemars/pull/162

Co-authored-by: teozkr <teo@nullable.se>
2022-10-02 19:46:29 +01:00
Randy Barlow
6ada120cd3 Fix a typo
Signed-off-by: Randy Barlow <randy.barlow@deepgram.com>
2022-10-02 19:45:46 +01:00
Graham Esau
4db6733844 Fix rendering of HTML tags in markdown docs 2022-08-14 15:35:32 +01:00
Graham Esau
b48bb2b2b3 Omit third-party crates from rust 1.45 CI 2022-08-12 16:21:11 +01:00
Graham Esau
dfa51de466 Fix rust 1.45 CI 2022-08-12 16:14:59 +01:00
Graham Esau
954f9f4c5c Fix rust 1.45 CI 2022-08-12 16:00:11 +01:00
Graham Esau
ba92234b3e Update changelog, update MSRV to 1.45 2022-08-12 15:49:59 +01:00