Skip to content
Prev Previous commit
Fix problem in python error message
  • Loading branch information
sebastien-rosset committed Apr 4, 2020
commit b2920c125d679f886d8a900d290579c687ca73b2
Original file line number Diff line number Diff line change
Expand Up @@ -945,13 +945,14 @@ def get_allof_instances(self, model_args, constant_args):
composed_instances.append(allof_instance)
except Exception as ex:
raise ApiValueError(
"Invalid inputs given to generate an instance of %s. The "
"input data was invalid for the allOf schema % in the composed "
"schema %s. Error=%s" %
allof_class.__class__.__name__,
allof_class.__class__.__name__,
self.__class__.__name__,
str(ex)
"Invalid inputs given to generate an instance of '%s'. The "
"input data was invalid for the allOf schema '%s' in the composed "
"schema '%s'. Error=%s" % (
allof_class.__class__.__name__,
allof_class.__class__.__name__,
self.__class__.__name__,
str(ex)
)
)
return composed_instances

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1201,13 +1201,14 @@ def get_allof_instances(self, model_args, constant_args):
composed_instances.append(allof_instance)
except Exception as ex:
raise ApiValueError(
"Invalid inputs given to generate an instance of %s. The "
"input data was invalid for the allOf schema % in the composed "
"schema %s. Error=%s" %
allof_class.__class__.__name__,
allof_class.__class__.__name__,
self.__class__.__name__,
str(ex)
"Invalid inputs given to generate an instance of '%s'. The "
"input data was invalid for the allOf schema '%s' in the composed "
"schema '%s'. Error=%s" % (
allof_class.__class__.__name__,
allof_class.__class__.__name__,
self.__class__.__name__,
str(ex)
)
)
return composed_instances

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1201,13 +1201,14 @@ def get_allof_instances(self, model_args, constant_args):
composed_instances.append(allof_instance)
except Exception as ex:
raise ApiValueError(
"Invalid inputs given to generate an instance of %s. The "
"input data was invalid for the allOf schema % in the composed "
"schema %s. Error=%s" %
allof_class.__class__.__name__,
allof_class.__class__.__name__,
self.__class__.__name__,
str(ex)
"Invalid inputs given to generate an instance of '%s'. The "
"input data was invalid for the allOf schema '%s' in the composed "
"schema '%s'. Error=%s" % (
allof_class.__class__.__name__,
allof_class.__class__.__name__,
self.__class__.__name__,
str(ex)
)
)
return composed_instances

Expand Down