make_nested_optional_defaults

tollan.utils.schema.make_nested_optional_defaults(s)[source]

Return a schema that has optional defaults computed from nested schema.

All the optionals in the subschemas have to have defaults.

Parameters
sschema.Schema or dict

The default schema to render