Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue #8014, _check_type flag not being honored. #8053

Merged
merged 2 commits into from
Dec 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,8 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
configuration,
spec_property_naming,
key_type=False,
must_convert=True
must_convert=True,
check_type=_check_type
)
return converted_instance
else:
Expand All @@ -1138,7 +1139,8 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
configuration,
spec_property_naming,
key_type=False,
must_convert=False
must_convert=False,
check_type=_check_type
)
return converted_instance

Expand Down
6 changes: 4 additions & 2 deletions samples/client/petstore/python/petstore_api/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,8 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
configuration,
spec_property_naming,
key_type=False,
must_convert=True
must_convert=True,
check_type=_check_type
)
return converted_instance
else:
Expand All @@ -1420,7 +1421,8 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
configuration,
spec_property_naming,
key_type=False,
must_convert=False
must_convert=False,
check_type=_check_type
)
return converted_instance

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,8 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
configuration,
spec_property_naming,
key_type=False,
must_convert=True
must_convert=True,
check_type=_check_type
)
return converted_instance
else:
Expand All @@ -1420,7 +1421,8 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
configuration,
spec_property_naming,
key_type=False,
must_convert=False
must_convert=False,
check_type=_check_type
)
return converted_instance

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,8 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
configuration,
spec_property_naming,
key_type=False,
must_convert=True
must_convert=True,
check_type=_check_type
)
return converted_instance
else:
Expand All @@ -1420,7 +1421,8 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
configuration,
spec_property_naming,
key_type=False,
must_convert=False
must_convert=False,
check_type=_check_type
)
return converted_instance

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,8 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
configuration,
spec_property_naming,
key_type=False,
must_convert=True
must_convert=True,
check_type=_check_type
)
return converted_instance
else:
Expand All @@ -1420,7 +1421,8 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
configuration,
spec_property_naming,
key_type=False,
must_convert=False
must_convert=False,
check_type=_check_type
)
return converted_instance

Expand Down