granular_configuration_language .yaml.decorators.ref
- granular_configuration_language.yaml.decorators.ref.resolve_json_ref(query: str, root: Root) Any[source]
Queries
Rootusing JSON Pointer or JSON PathJSON Path
JSON Path can be used to be a pointer to data or a constructor from data.
If the query matches one item, then that one item is returned.
If the query matches more than one item, that a
tupleof items is returned.
- Parameters:
- Raises:
ReferencingRootOnlyWorksOnMappings – Raised if
rootis not aMappingRefMustStartFromRoot – Raised if the
querydoes not start with$or/.
- Returns:
Result of the query
- Return type: