-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[request] [help] Ranged values #515
Comments
Tryed a mix of: paperclip/core/src/v2/models.rs Line 519 in 555a460
and https://paperclip-rs.github.io/paperclip/actix-security.html
|
Maybe we can integrate with validator:
|
Yeah a validator like that seems like a good idea. |
I think it could be an optional field, if not set - It will take the minumum and maximum values from integer type. |
Sorry about the long delay in addressing this.. |
There is some way/instruction on how to set ranged inputs?
something at the struct field like: [api_v2(min_value = 0)]
For enuns and direct type values it works pretty fine.
The text was updated successfully, but these errors were encountered: