Skip to content
Prev Previous commit
Next Next commit
Address review comments
  • Loading branch information
sebastien-rosset committed Apr 3, 2020
commit 16cbb88e7402965426fa84b99ee51673e1f916e0
Original file line number Diff line number Diff line change
Expand Up @@ -1115,10 +1115,18 @@ def get_unused_args(self, composed_instances, model_args):

def validate_get_composed_info(constant_args, model_args, self):
"""
For composed schemas/classes, validates the classes to make sure that
they do not share any of the same parameters. If there is no collision
then composed model instances are created and returned to the calling
self model
For composed schemas, generate schema instances for
all schemas in the oneOf/anyOf/allOf definition. If additional
properties are allowed, also assign those properties on
all matched schemas that contain additionalProperties.
Openapi schemas are python classes.

Exceptions are raised if:
- no oneOf schema matches the model_args input data
- > 1 oneOf schema matches the model_args input data
- > 1 oneOf schema matches the model_args input data
- no anyOf schema matches the model_args input data
- any of the allOf schemas do not match the model_args input data

Args:
constant_args (dict): these are the args that every model requires
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1371,10 +1371,18 @@ def get_unused_args(self, composed_instances, model_args):

def validate_get_composed_info(constant_args, model_args, self):
"""
For composed schemas/classes, validates the classes to make sure that
they do not share any of the same parameters. If there is no collision
then composed model instances are created and returned to the calling
self model
For composed schemas, generate schema instances for
all schemas in the oneOf/anyOf/allOf definition. If additional
properties are allowed, also assign those properties on
all matched schemas that contain additionalProperties.
Openapi schemas are python classes.

Exceptions are raised if:
- no oneOf schema matches the model_args input data
- > 1 oneOf schema matches the model_args input data
- > 1 oneOf schema matches the model_args input data
- no anyOf schema matches the model_args input data
- any of the allOf schemas do not match the model_args input data

Args:
constant_args (dict): these are the args that every model requires
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1371,10 +1371,18 @@ def get_unused_args(self, composed_instances, model_args):

def validate_get_composed_info(constant_args, model_args, self):
"""
For composed schemas/classes, validates the classes to make sure that
they do not share any of the same parameters. If there is no collision
then composed model instances are created and returned to the calling
self model
For composed schemas, generate schema instances for
all schemas in the oneOf/anyOf/allOf definition. If additional
properties are allowed, also assign those properties on
all matched schemas that contain additionalProperties.
Openapi schemas are python classes.

Exceptions are raised if:
- no oneOf schema matches the model_args input data
- > 1 oneOf schema matches the model_args input data
- > 1 oneOf schema matches the model_args input data
- no anyOf schema matches the model_args input data
- any of the allOf schemas do not match the model_args input data

Args:
constant_args (dict): these are the args that every model requires
Expand Down