From 2f3cb842efafb914e32dfa885b1b89fc1a2831ea Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Thu, 9 Jan 2020 21:31:54 -0500 Subject: [PATCH] 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. --- tests/schemas/test_openapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/schemas/test_openapi.py b/tests/schemas/test_openapi.py index 9cf48d12c..56e393a9d 100644 --- a/tests/schemas/test_openapi.py +++ b/tests/schemas/test_openapi.py @@ -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),