Graham Esau
08886799bb
Respect with
attributes on enum variants
2020-05-10 17:17:04 +01:00
Graham Esau
1e17c46803
Minor restyling of attribute docs
2020-04-30 15:34:00 +01:00
Graham Esau
08f7fa44a7
Update docs for v0.7.2
2020-04-30 14:36:21 +01:00
Graham Esau
60b1b27157
v0.7.2
2020-04-30 14:28:18 +01:00
Graham Esau
11b7a09c93
Enable deriving JsonSchema on adjacent tagged enums
...
Issue #4
2020-04-30 14:21:04 +01:00
Graham Esau
8207892fa6
v0.7.1
2020-04-11 22:17:30 +01:00
Graham Esau
0920fe8fd7
Fix rustc 1.32 build
2020-04-11 22:12:22 +01:00
Graham Esau
63af0ceb73
Fix skip_serializing_if/serialize_with handling
...
Previously whenever a field with a default value has both `skip_serializing_if` and `with`/`serialize_with` attributes, the value would be converted to a type that performs the custom serialization before checking if it should be serialized. This would cause the wrong type to be given to the skip_serializing_if function, causing a compile error.
Issue #26
2020-04-11 22:06:48 +01:00
Graham Esau
d1f2c0f803
Update changelog
2020-04-09 17:33:55 +01:00
Graham Esau
5021204dfb
Add examples
schema keyword
2020-04-09 17:03:27 +01:00
Graham Esau
726860cb8e
v0.7.0
2020-03-24 18:58:41 +00:00
Atsuki Takahashi
873ab3ae02
Specify full path for String ( #19 )
2020-03-24 18:05:37 +00:00
Graham Esau
3e1ab76c21
Parse types as syn::Type, not syn::ExprPath.
...
#[schemars(with= "()")] should now work!
2020-02-29 23:36:39 +00:00
Graham Esau
d7c9222330
Refactor apply_metadata() to remove clone
2020-02-29 19:57:34 +00:00
Graham Esau
39918ba06c
Update examples
2020-02-29 19:57:18 +00:00
Graham Esau
c76ea691c7
v0.7.0-alpha-2
2020-02-29 19:39:16 +00:00
Graham Esau
4ad5000232
Make Option<T> fields optional in generated schemas ( #16 )
2020-02-29 19:37:20 +00:00
Graham Esau
60284fdf93
Ensure json files are have LF line-endings.
...
"Expected" schema json files are generated by serde_json with LF line-endings, even on windows. Ensure that Git checks them out with LF line-endings to match
2020-02-26 19:17:14 +00:00
Graham Esau
a92638146a
Ensure schema.json files are have LF line-endings.
...
The files are generated by serde_json with LF line-endings, even on windows. Ensure that Git checks them out with LF line-endings to match
2020-02-22 14:07:17 +00:00
Graham Esau
6bebd73701
Add test for allow_ref_siblings behaviour
2019-12-29 22:30:17 +00:00
Graham Esau
58cc7fac25
Run cargo fmt
2019-12-29 22:09:54 +00:00
Graham Esau
98f981634c
v0.7.0-alpha-1
2019-12-29 21:53:10 +00:00
Graham Esau
1605a8a34d
Small refactor
2019-12-29 18:45:55 +00:00
Graham Esau
0198ede4b6
Add JSON Schema 2019-09 settings
2019-12-29 18:05:10 +00:00
Graham Esau
233b1a4165
Add private field to SchemaSettings to prevent struct initialization.
...
This means future additions to SchemaSettings will not be breaking changes.
2019-12-29 14:45:23 +00:00
Graham Esau
1963b5c715
v0.6.5
2019-12-29 00:30:36 +00:00
Graham Esau
ec0a01b82b
Update optional dependencies docs
2019-12-29 00:28:54 +00:00
Graham Esau
c46873ffb9
Run more CI tests on rust 1.32
2019-12-28 20:43:14 +00:00
Graham Esau
84baf51eb8
Disable github actions CI fail-fast
2019-12-28 20:34:08 +00:00
Graham Esau
d5e035d2cf
Do not run tests with --all-features on rust 1.32
2019-12-28 20:31:35 +00:00
Graham Esau
a97d54bcad
Implement JsonSchema on smallvec + arrayvec types
...
Documentation still needs updating.
2019-12-28 20:11:38 +00:00
Graham Esau
aec4824425
Add example for handling custom serialization
2019-12-28 16:45:00 +00:00
Graham Esau
79155cddf5
Add doc comments example
2019-12-28 15:38:41 +00:00
Graham Esau
51a0966ec1
v0.6.4
2019-12-27 22:43:14 +00:00
Graham Esau
008d70e52a
Implement JsonSchema on Uuid
2019-12-27 22:41:28 +00:00
Graham Esau
547f81fd67
Update changelog
2019-12-27 22:19:51 +00:00
Graham Esau
fbd019baae
Implement JsonSchema on Either
2019-12-27 22:16:01 +00:00
Graham Esau
fd42debc4d
Implement JsonSchema on indexmap types
2019-12-27 21:44:50 +00:00
Graham Esau
8d0ccc89db
Remove trait bounds from Map/Set JsonSchema impls.
...
They are unnecessary as we never create/use any instances of these types
2019-12-27 21:18:18 +00:00
Graham Esau
4b9578ec2b
v0.6.3
2019-12-27 18:49:25 +00:00
Graham Esau
c9d1f34243
v0.6.2
2019-12-27 18:29:48 +00:00
Graham Esau
39dc08e34e
Update changelog
2019-12-27 18:10:33 +00:00
Graham Esau
22e7d49a84
Fix typo in readme
2019-12-27 18:04:33 +00:00
Graham Esau
460afe9b6e
Update CI badge
2019-12-27 17:58:05 +00:00
Graham Esau
e299522573
Delete .travis.yml
2019-12-27 17:50:18 +00:00
Graham Esau
805fb243b2
Add github workflow for CI
2019-12-27 17:45:55 +00:00
Graham Esau
0ae2d48fba
Rename derive_json_schema feature to impl_json_schema
2019-12-27 17:13:32 +00:00
Graham Esau
1c0f626e3f
Add overview to docs site
2019-12-27 17:06:46 +00:00
Graham Esau
40f459603a
Add link to website
2019-12-27 16:47:50 +00:00
Graham Esau
e25791dddf
Add generic type to remote derive example
2019-12-27 16:25:50 +00:00