We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f18282 commit 81aa11fCopy full SHA for 81aa11f
1 file changed
tests/unittests/tools/openapi_tool/openapi_spec_parser/test_operation_parser.py
@@ -347,9 +347,8 @@ def test_get_json_schema(sample_operation):
347
assert json_schema['type'] == 'object'
348
assert 'param1' in json_schema['properties']
349
assert 'prop1' in json_schema['properties']
350
- assert 'param1' in json_schema['required']
351
- assert 'prop1' in json_schema['required']
352
-
+ # By default nothing is required unless explicitly stated
+ assert 'required' not in json_schema or json_schema['required'] == []
353
354
def test_get_signature_parameters(sample_operation):
355
"""Test get_signature_parameters method."""
0 commit comments