Graham Esau
08886799bb
Respect with
attributes on enum variants
2020-05-10 17:17:04 +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
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
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
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
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
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
e299522573
Delete .travis.yml
2019-12-27 17:50:18 +00:00
Graham Esau
0ae2d48fba
Rename derive_json_schema feature to impl_json_schema
2019-12-27 17:13:32 +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
Graham Esau
781f40b061
Improve schema naming for deriving on remote types
2019-12-27 15:37:59 +00:00
Graham Esau
ea28450c30
Add test for remote deriving with generic types
2019-12-27 14:38:58 +00:00
Graham Esau
8d40625f10
Add example for remote deriving JsonSchema
2019-12-26 23:18:09 +00:00
Graham Esau
b11536e527
Add example for schemars attributes
2019-12-26 22:20:53 +00:00
Graham Esau
601fc3aaad
Add example for custom schema setings
2019-12-26 22:00:47 +00:00
Graham Esau
d67abbdbb1
Update examples
2019-12-26 20:39:18 +00:00
Graham Esau
26346612b5
Add docs on generating schemas
2019-12-26 18:26:14 +00:00
Graham Esau
583edc08ca
Document implementing JsonSchema manually
2019-12-26 16:43:58 +00:00
Graham Esau
64b0f79851
Add docs permalinks
2019-12-26 14:35:34 +00:00
Graham Esau
fc592e5dd7
Ensure root schemas do not have a $ref property.
...
If necessary, wrap the `$ref` in an `allOf`.
2019-12-16 21:36:20 +00:00
Graham Esau
b5e1821f3a
Don't include "doc" in list of helper attributes
2019-12-09 21:56:19 +00:00
Graham Esau
f55572f735
Fix indentation
...
It should be 4 spaces, not 2
2019-12-09 21:49:47 +00:00
Graham Esau
e151d21d6d
v0.6.1
...
Fix a compile error that can occur when deriving `JsonSchema` from a project that doesn't reference serde_json
2019-12-09 21:25:37 +00:00
Graham Esau
351ff1572a
v0.6.0
2019-12-09 21:06:44 +00:00
Graham Esau
1f021fa5ae
Format project with rustfmt
2019-12-09 17:37:49 +00:00
Graham Esau
e4d69f89e7
v0.6.0-alpha-2
2019-12-09 13:07:39 +00:00