-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for serde skip in
IntoParams
derive (#743)
Add support for serde's `skip` attribute in `IntoParams` derive macro. This allows users to use the serde's `skip`, `skip_serializing` or `skip_deserializing` attribute to ignore the field being added as a parameter to a OpenAPI documentation. ```rust #[derive(IntoParams, Serialize)] #[into_params(parameter_in = Query)] #[allow(unused)] struct Params { name: String, name2: Option<String>, #[serde(skip)] name3: Option<String>, } ```
- Loading branch information
Showing
4 changed files
with
167 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters