We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b75984 commit 75b071eCopy full SHA for 75b071e
reproschema/validate.py
@@ -92,6 +92,10 @@ def validate_dir(
92
if stop is not None:
93
stop_server(stop)
94
raise ValueError(f"Empty data graph in file {name}")
95
+ if data["@id"].split("/")[-1] != name.split("/")[-1]:
96
+ raise Exception(
97
+ f"Document {data['@id']} does not match file name {name}"
98
+ )
99
conforms, vtext = validate_data(data)
100
except (ValueError, json.JSONDecodeError):
101
0 commit comments