Skip to content

Commit fec6394

Browse files
committed
Fix tests to deal with the requirement that parameter objects must
contain one of 'content' or 'schema'.
1 parent 2d213ff commit fec6394

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/integration/test_validators.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,16 @@ def test_same_parameters_names(self, validator):
6161
{
6262
'name': 'param1',
6363
'in': 'query',
64+
'schema': {
65+
'type': 'integer',
66+
},
6467
},
6568
{
6669
'name': 'param1',
6770
'in': 'path',
71+
'schema': {
72+
'type': 'integer',
73+
},
6874
},
6975
],
7076
},
@@ -120,6 +126,9 @@ def test_undocumented_parameter(self, validator):
120126
{
121127
'name': 'param1',
122128
'in': 'path',
129+
'schema': {
130+
'type': 'integer',
131+
},
123132
},
124133
],
125134
},

0 commit comments

Comments
 (0)