mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-29 15:34:09 +02:00
Fix schema validator for multiple examples
This commit is contained in:
parent
176f919fc8
commit
810922bb38
|
|
@ -60,6 +60,8 @@ def check_example_dir(exampledir, schemadir):
|
||||||
continue
|
continue
|
||||||
examplepath = os.path.join(root, filename)
|
examplepath = os.path.join(root, filename)
|
||||||
schemapath = examplepath.replace(exampledir, schemadir)
|
schemapath = examplepath.replace(exampledir, schemadir)
|
||||||
|
if schemapath.find("#") >= 0:
|
||||||
|
schemapath = schemapath[:schemapath.find("#")]
|
||||||
try:
|
try:
|
||||||
check_example_file(examplepath, schemapath)
|
check_example_file(examplepath, schemapath)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue