Graham Esau
8f85178a7a
Add SetSingleExample visitor for openapi 3.0
2020-06-12 21:38:13 +01:00
Graham Esau
ca7c66eb08
v0.8.0-alpha-3
2020-06-12 20:43:16 +01:00
Graham Esau
260cd99293
v0.8.0-alpha-2
2020-06-07 22:33:57 +01:00
Ralph Bisschops
a618a90eb4
Adding IndexMap
under feature flag preserve_order
( #36 )
2020-06-07 22:24:36 +01:00
Graham Esau
a02947462d
Split Visitor into two traits
2020-06-07 21:46:08 +01:00
Graham Esau
656a70e02c
Allow mutable Visitors
2020-06-05 23:51:54 +01:00
Graham Esau
475a751b70
Require Visitors to implement Clone
2020-06-05 23:48:03 +01:00
Ferenc Tamás
5b316fb31b
Removed Any bound from Visitor ( #41 )
2020-06-05 23:45:17 +01:00
Graham Esau
4197bf4183
Add test for invalid schemars attributes
2020-06-05 17:18:48 +01:00
Graham Esau
b0a2f9994b
Error on unknown schemars attr items
2020-06-04 19:39:57 +01:00
Graham Esau
a829267111
Add Visitor trait, update changelog
2020-06-04 19:23:36 +01:00
Graham Esau
4b37f96c99
v0.7.6
2020-05-17 18:35:03 +01:00
Graham Esau
be6cd1080d
Allow unused braces in macro output.
...
Fixes warnings in beta/nightly rustc
2020-05-17 17:22:42 +01:00
Graham Esau
f9b14f7b00
Update docs and changelog
2020-05-17 17:15:40 +01:00
Graham Esau
e259955809
Attribute for defining examples ( #23 )
2020-05-17 16:41:19 +01:00
Graham Esau
19b9bef395
v0.7.5
2020-05-17 13:46:09 +01:00
Graham Esau
61c106fd5b
Update docs and changelog
2020-05-17 11:45:36 +01:00
Graham Esau
75419fa3d5
Fix rustc 1.32 build
2020-05-17 11:27:11 +01:00
Graham Esau
1b42dc7e3e
Allow overriding title/desc from doc comments ( #13 )
2020-05-17 11:19:48 +01:00
Graham Esau
42e3c8fd7f
Fix local build
2020-05-17 11:00:44 +01:00
Graham Esau
1470d2641c
Update changelog
2020-05-17 10:54:29 +01:00
Graham Esau
985280c388
Make schemars_derive optional
2020-05-17 10:16:30 +01:00
Graham Esau
5a28cef598
Respect #[serde(transparent)] attribute ( #17 )
2020-05-16 21:16:59 +01:00
Graham Esau
509a1c3b7b
Check for #[deprecated] attributes
2020-05-16 16:44:44 +01:00
Graham Esau
bb8c93ddc1
v0.7.4
2020-05-16 12:27:56 +01:00
Graham Esau
f47bb24ddf
Fix error in doc comment (copy-paste fail!)
2020-05-16 12:25:05 +01:00
Graham Esau
e7cae04beb
Update docs and changelog
2020-05-16 12:21:09 +01:00
Graham Esau
bfb3f06253
Avoid setting ObjectValidation unnecessarily
2020-05-16 12:10:54 +01:00
Denis Kurilov
1190b1fad9
additionalProperties: false
for struct annotated with serde deny_unknown_fields
(#30 )
...
Co-authored-by: Denis Kurilov <denis@routinghub.com>
2020-05-16 12:02:47 +01:00
Graham Esau
ea351f3b42
Set type on enum schemas ( #28 )
2020-05-16 10:41:30 +01:00
Graham Esau
f4c8e7d4d3
v0.7.3
2020-05-15 17:55:28 +01:00
Graham Esau
4c501990b1
Document schema_with
attribute
2020-05-15 17:42:37 +01:00
Graham Esau
3fd316063a
schema_with
attribute
2020-05-15 17:11:28 +01:00
Graham Esau
9d951b34ce
Fix rustc 1.32 build
2020-05-12 21:19:43 +01:00
Graham Esau
780c7286a6
Refactor attribute parsing to make it more extensible
2020-05-12 21:17:34 +01:00
Graham Esau
b1ded882b7
More refactoring of proc macro...
2020-05-11 21:53:36 +01:00
Graham Esau
631120ead8
Fix rustc 1.32 build
2020-05-10 22:16:17 +01:00
Graham Esau
70b5a1a2e6
Refactor of AST parsing
2020-05-10 22:09:15 +01:00
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