Skip to content
Prev Previous commit
Next Next commit
Improve documentation
  • Loading branch information
sebastien-rosset committed Apr 1, 2020
commit f1b7a509e4f741bc5e6dba9e087c68d6c8d536e8
Original file line number Diff line number Diff line change
Expand Up @@ -965,8 +965,10 @@ def get_oneof_instance(self, model_args, constant_args):
return None

oneof_instances = []
# Iterate over each oneOf schema and determine if the input data
# matches the oneOf schemas.
for oneof_class in self._composed_schemas()['oneOf']:
# transform js keys to python keys in fixed_model_args
# transform js keys from input data to python keys in fixed_model_args
fixed_model_args = change_keys_js_to_python(
model_args, oneof_class)

Expand Down