From 9b2a4d81478c4785b2eed3a7fae895882a01bf45 Mon Sep 17 00:00:00 2001 From: p1c2u Date: Sat, 1 May 2021 12:04:47 +0100 Subject: [PATCH] Schema default value test --- tests/integration/data/v3.0/petstore.yaml | 2 +- tests/integration/validation/test_petstore.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/integration/data/v3.0/petstore.yaml b/tests/integration/data/v3.0/petstore.yaml index 6d2b1c6..9db095b 100644 --- a/tests/integration/data/v3.0/petstore.yaml +++ b/tests/integration/data/v3.0/petstore.yaml @@ -335,12 +335,12 @@ components: Error: type: object required: - - code - message properties: code: type: integer format: int32 + default: 400 message: type: string ExtendedError: diff --git a/tests/integration/validation/test_petstore.py b/tests/integration/validation/test_petstore.py index 7e28649..4992e33 100644 --- a/tests/integration/validation/test_petstore.py +++ b/tests/integration/validation/test_petstore.py @@ -1150,7 +1150,6 @@ class TestPetstore(object): rootCause = 'Tag already exist' additionalinfo = 'Tag Dog already exist' data_json = { - 'code': code, 'message': message, 'correlationId': str(correlationId), 'rootCause': rootCause,