-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(openapi): add max and min attribute parsing (#524)
This allows adding maximum an minimum as attributes to a field, example: ``` \#[openapi(maximum = 2.0)] age: u8 ``` The max and min must be either string, float or int. They are then converted to the openapi f32 format. Signed-off-by: Tiago Castro <[email protected]>
- Loading branch information
1 parent
135096f
commit b20eeab
Showing
2 changed files
with
108 additions
and
14 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