We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The serializer looks like this
class RepositorySerializer(ModelSerializer): # blah blah retained_versions = serializers.IntegerField( allow_null=True, required=False, min_value=1, # not needed to reproduce ) # blah blah
When POSTing or PATCHing, integer values work fine. However, despite allow_null=True, null values are rejected.
allow_null=True
{ "retained_versions": [ "A valid integer is required." ] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The serializer looks like this
When POSTing or PATCHing, integer values work fine. However, despite
allow_null=True
, null values are rejected.Checklist
The text was updated successfully, but these errors were encountered: