mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Adjust test for ListField(IntegerField)
The `maximum` is valid here within the schema but it was not previously being included because we were not copying over the entire schema for the generated `IntegerField` previously.
This commit is contained in:
parent
98c8af5291
commit
f8f8b3a1f1
|
@ -51,7 +51,7 @@ class TestFieldMapping(TestCase):
|
|||
(serializers.ListField(child=serializers.FloatField()), {'items': {'type': 'number'}, 'type': 'array'}),
|
||||
(serializers.ListField(child=serializers.CharField()), {'items': {'type': 'string'}, 'type': 'array'}),
|
||||
(serializers.ListField(child=serializers.IntegerField(max_value=4294967295)),
|
||||
{'items': {'type': 'integer', 'format': 'int64'}, 'type': 'array'}),
|
||||
{'items': {'type': 'integer', 'maximum': 4294967295, 'format': 'int64'}, 'type': 'array'}),
|
||||
(serializers.ListField(child=serializers.ChoiceField(choices=[('a', 'Choice A'), ('b', 'Choice B')])),
|
||||
{'items': {'enum': ['a', 'b']}, 'type': 'array'}),
|
||||
(serializers.IntegerField(min_value=2147483648),
|
||||
|
|
Loading…
Reference in New Issue
Block a user