forked from loafle/openapi-generator-original
[Python] fixes __setitem__ throwing an error for composed instance (#10197)
* adding a test for issues 10083 * commiting the generated files * fix for the setattr issue * commit generated files Co-authored-by: Aanisha Mishra <aanisha.mishra05@gmail.com>
This commit is contained in:
@@ -1479,6 +1479,9 @@ def is_valid_type(input_class_simple, valid_classes):
|
||||
Returns:
|
||||
bool
|
||||
"""
|
||||
if issubclass(input_class_simple, OpenApiModel) and \
|
||||
valid_classes == (bool, date, datetime, dict, float, int, list, str, none_type,):
|
||||
return True
|
||||
valid_type = input_class_simple in valid_classes
|
||||
if not valid_type and (
|
||||
issubclass(input_class_simple, OpenApiModel) or
|
||||
|
||||
Reference in New Issue
Block a user