Skip to content

Commit 81aa11f

Browse files
authored
fix: Update test_operation_parser.py
1 parent 6f18282 commit 81aa11f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/unittests/tools/openapi_tool/openapi_spec_parser/test_operation_parser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,8 @@ def test_get_json_schema(sample_operation):
347347
assert json_schema['type'] == 'object'
348348
assert 'param1' in json_schema['properties']
349349
assert 'prop1' in json_schema['properties']
350-
assert 'param1' in json_schema['required']
351-
assert 'prop1' in json_schema['required']
352-
350+
# By default nothing is required unless explicitly stated
351+
assert 'required' not in json_schema or json_schema['required'] == []
353352

354353
def test_get_signature_parameters(sample_operation):
355354
"""Test get_signature_parameters method."""

0 commit comments

Comments
 (0)