mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 19:44:09 +01:00
Improve docs
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
a0aaab0099
commit
7edf3b8ef4
|
|
@ -88,7 +88,8 @@ def load_file_from_uri(path):
|
|||
return yaml.safe_load(f)
|
||||
|
||||
def load_resource_from_uri(path):
|
||||
"""Load a JSON or YAML JSON Schema from a file:// URI.
|
||||
"""Load a JSON or YAML JSON Schema, as a `referencing.Resource` object, from
|
||||
a file:// URI.
|
||||
"""
|
||||
contents = load_file_from_uri(path)
|
||||
resource = referencing.Resource(
|
||||
|
|
|
|||
Loading…
Reference in a new issue