Commit graph

26 commits

Author SHA1 Message Date
Graham Esau
605db3bba8 Emit compilation errors for duplicate validation attributes 2021-09-17 23:04:37 +01:00
Graham Esau
d99a96fc8a Add some doc comments 2021-04-24 11:46:07 +01:00
Graham Esau
5f841f2e5c Refactoring 2021-04-16 17:02:57 +01:00
Graham Esau
4be21bd811 Refactor out "local_id" for type definitions 2021-04-16 14:23:10 +01:00
Graham Esau
9e507272da Process validation attributes in tuple structs 2021-04-16 13:56:26 +01:00
Graham Esau
31a5893d10 Process validation attributes in newtype structs 2021-04-16 12:30:52 +01:00
Graham Esau
60a9869448 Refactor out add_schema_as_property 2021-04-16 10:42:03 +01:00
Graham Esau
1a2dafc1a5 Handle required flattened Option fields 2021-04-15 18:11:28 +01:00
Graham Esau
b68132f17d Merge branch 'master' into validate 2021-04-15 16:08:10 +01:00
Graham Esau
55b860428e Refactory of private functions 2021-04-15 13:34:04 +01:00
Graham Esau
5dc644000c Allow schema_with attr on enum variants 2021-04-10 15:16:16 +01:00
Graham Esau
ebd7ff32ce More fixes for deriving JsonSchema inside macro 2021-04-05 16:40:20 +01:00
Graham Esau
4d3400152e
Fix deriving JsonSchema inside macro (#79) 2021-04-05 16:15:34 +01:00
Graham Esau
6ab567f3a5 Read #[validate(...)] attributes 2021-03-29 16:38:55 +01:00
Graham Esau
11d95b79e5
Derive JsonSchema_repr (#76) 2021-03-25 22:36:28 +00:00
Graham Esau
6a3bba1e86 Set additionalProperties to false on enums where appropriate 2021-03-20 18:45:29 +00:00
Graham Esau
3a7d7ad905 Apply some clippy suggestions 2021-03-19 23:20:16 +00:00
Graham Esau
1b42dc7e3e Allow overriding title/desc from doc comments (#13) 2020-05-17 11:19:48 +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
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
3fd316063a schema_with attribute 2020-05-15 17:11:28 +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