Skip to content

Commit

Permalink
make style public too
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
antoine-de committed Jun 20, 2019
1 parent c4f4706 commit ae7e602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v3_0/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ 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<ParameterStyle>,
pub style: Option<ParameterStyle>,
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq)]
Expand Down

0 comments on commit ae7e602

Please sign in to comment.