mate_common.schemata module¶
- mate_common.schemata.inline_refs(resolver: jsonschema.validators.RefResolver, schema: Dict[str, Any], gas: int = 0) Dict[str, Any] ¶
Inline all JSON schema
$ref
references.Rather than handling recursive references in a correct, complicated way (say, with cycle- detection), this function takes a
gas
parameter which determines how many times it will call itself recursively.- Parameters
resolver (jsonschema.validators.RefResolver) –
schema (Dict[str, Any]) –
gas (int) –
- Return type
Dict[str, Any]