Schema default value test

This commit is contained in:
p1c2u 2021-05-01 12:04:47 +01:00
parent 90060b9c8a
commit 9b2a4d8147
2 changed files with 1 additions and 2 deletions

View file

@ -335,12 +335,12 @@ components:
Error: Error:
type: object type: object
required: required:
- code
- message - message
properties: properties:
code: code:
type: integer type: integer
format: int32 format: int32
default: 400
message: message:
type: string type: string
ExtendedError: ExtendedError:

View file

@ -1150,7 +1150,6 @@ class TestPetstore(object):
rootCause = 'Tag already exist' rootCause = 'Tag already exist'
additionalinfo = 'Tag Dog already exist' additionalinfo = 'Tag Dog already exist'
data_json = { data_json = {
'code': code,
'message': message, 'message': message,
'correlationId': str(correlationId), 'correlationId': str(correlationId),
'rootCause': rootCause, 'rootCause': rootCause,