Skip to content

Commit f8f8b3a

Browse files
kevin-browncarltongibson
authored andcommitted
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.
1 parent 98c8af5 commit f8f8b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/schemas/test_openapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_list_field_mapping(self):
5151
(serializers.ListField(child=serializers.FloatField()), {'items': {'type': 'number'}, 'type': 'array'}),
5252
(serializers.ListField(child=serializers.CharField()), {'items': {'type': 'string'}, 'type': 'array'}),
5353
(serializers.ListField(child=serializers.IntegerField(max_value=4294967295)),
54-
{'items': {'type': 'integer', 'format': 'int64'}, 'type': 'array'}),
54+
{'items': {'type': 'integer', 'maximum': 4294967295, 'format': 'int64'}, 'type': 'array'}),
5555
(serializers.ListField(child=serializers.ChoiceField(choices=[('a', 'Choice A'), ('b', 'Choice B')])),
5656
{'items': {'enum': ['a', 'b']}, 'type': 'array'}),
5757
(serializers.IntegerField(min_value=2147483648),

0 commit comments

Comments
 (0)