From 11f732b373d2dc1d725f77a245fac3677b51318b Mon Sep 17 00:00:00 2001 From: antoine-de Date: Thu, 20 Jun 2019 12:07:23 +0200 Subject: [PATCH] make `style` public too It's not easy to initialize a Parameter if all fields are not public and I think it makes sens to be able to change the style. --- src/v3_0/schema.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v3_0/schema.rs b/src/v3_0/schema.rs index b3be1ef..9c32c97 100644 --- a/src/v3_0/schema.rs +++ b/src/v3_0/schema.rs @@ -402,12 +402,12 @@ pub struct Parameter { /// value. Default values (based on value of in): for `query` - `form`; for `path` - `simple`; for /// `header` - `simple`; for cookie - `form`. #[serde(skip_serializing_if = "Option::is_none")] - style: Option, + pub style: Option, } #[derive(Clone, Debug, Deserialize, Serialize, PartialEq)] #[serde(rename_all = "camelCase")] -enum ParameterStyle { +pub enum ParameterStyle { Form, Simple, }