File tree 2 files changed +3
-6
lines changed
openapi_spec_validator/validation
tests/integration/validation
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ def __call__(
144
144
set (required ) - set (properties ) - set (nested_properties )
145
145
)
146
146
else :
147
- extra_properties = list ( set ( required ) - set ( properties ))
147
+ extra_properties = []
148
148
149
149
if extra_properties and require_properties :
150
150
yield ExtraParametersError (
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ def test_allow_allof_when_required_is_linked_to_the_parent_object(self):
202
202
errors_list = list (errors )
203
203
assert errors_list == []
204
204
205
- def test_extra_parameters_in_required (self ):
205
+ def test_allow_extra_parameters_in_required (self ):
206
206
spec = {
207
207
"openapi" : "3.0.0" ,
208
208
"info" : {
@@ -225,10 +225,7 @@ def test_extra_parameters_in_required(self):
225
225
errors = OpenAPIV30SpecValidator (spec ).iter_errors ()
226
226
227
227
errors_list = list (errors )
228
- assert errors_list [0 ].__class__ == ExtraParametersError
229
- assert errors_list [0 ].message == (
230
- "Required list has not defined properties: ['testparam1']"
231
- )
228
+ assert len (errors_list ) == 0
232
229
233
230
def test_undocumented_parameter (self ):
234
231
spec = {
You can’t perform that action at this time.
0 commit comments