-
Notifications
You must be signed in to change notification settings - Fork 204
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 repeated
schema(...)
definition (#410)
Add support for `ToSchema` types to have repeated definition of `schema(...)` attribute. Prior to this PR only the first `#[schema(...)]` attribute was taken in account in parsing the attributes for variant / field / type. This commit will add support for repeated definition of the attribute. ```rust #[derive(ToSchema)] struct UserName { #[schema(min_length = 5)] #[schema(max_length = 10)] name: String, } ```
- Loading branch information
Showing
2 changed files
with
95 additions
and
11 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