Commit graph

452 commits

Author SHA1 Message Date
Graham Esau
755368fc3a v0.8.0 2020-09-27 10:58:51 +01:00
Alexander Berger
364d0e0192
Add support to enforce inlining of all subschemas instead of using references. (#44)
This is needed to support use cases like openAPIV3Schema in Kubernetes CustomResourceDefinitions.


Co-authored-by: alex.berger@nexiot.ch <alex.berger@nexiot.ch>
2020-09-25 18:50:54 +01:00
Graham Esau
40d9bfd517 Forbid unsafe code 2020-09-25 18:34:57 +01:00
Graham Esau
b09217c5ad Fix broken link in readme 2020-09-24 20:52:20 +01:00
Graham Esau
5ddd44a9e5 Regenerate all test expected outputs
Properties are now in a different order due to the preserve_order feature flag
2020-09-24 20:47:46 +01:00
Graham Esau
858543aca1 Revert buggy refactor 2020-09-24 20:42:26 +01:00
Graham Esau
460976e765 Add documentation comments, rename Visitor2 2020-09-24 20:34:30 +01:00
Graham Esau
0c02525fb9 Trim leading asterisks from doc block comments
This is to handle a change in behaviour in current beta rustc
2020-09-21 09:55:31 +01:00
Graham Esau
ac8dd4c368 Fix build (hopefully) 2020-09-21 08:46:28 +01:00
Graham Esau
5ca2d08013 Bump MSRV to 1.36.0 2020-09-21 08:42:07 +01:00
Graham Esau
7a1e02eefd Pin dyn-clone to v1.0.1
v1.0.2 relies on alloc so does not work in rustc 1.32
2020-09-21 08:03:10 +01:00
Graham Esau
37f0e4bc71 v0.8.0-alpha-4 2020-06-12 21:38:21 +01:00
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