Minor feature request: serializers.FloatField should have an exclusive minimum and maximum #7800
Unanswered
foufaster
asked this question in
Ideas & Suggestions
Replies: 1 comment
-
Can't this be handled with validators? https://www.django-rest-framework.org/api-guide/validators/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since the attributes min_value and max_value FloatField define close bounds , I propose to add two boolean attributes (exclusive_min and exclusive_max) to FloatField to define open bounds.
Example:
Beta Was this translation helpful? Give feedback.
All reactions