diff --git a/resources/schema/rule-merged/CORE-base.json b/resources/schema/rule-merged/CORE-base.json index 6fccb4afd..9b77c67c6 100644 --- a/resources/schema/rule-merged/CORE-base.json +++ b/resources/schema/rule-merged/CORE-base.json @@ -191,7 +191,7 @@ "description": "Can reference either a dataset variable name or an operation result" } }, - "$id": "https://cdisc.org/CORE-base.json", + "$id": "https://raw.githubusercontent.com/cdisc-org/cdisc-rules-engine/refs/heads/main/resources/schema/rule-merged/CORE-base.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "markdownDescription": "Validation schema CDISC Rules 1.0", diff --git a/resources/schema/rule/CORE-base.json b/resources/schema/rule/CORE-base.json index 6fccb4afd..4b9f5537c 100644 --- a/resources/schema/rule/CORE-base.json +++ b/resources/schema/rule/CORE-base.json @@ -191,7 +191,7 @@ "description": "Can reference either a dataset variable name or an operation result" } }, - "$id": "https://cdisc.org/CORE-base.json", + "$id": "https://raw.githubusercontent.com/cdisc-org/cdisc-rules-engine/refs/heads/main/resources/schema/rule/CORE-base.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "markdownDescription": "Validation schema CDISC Rules 1.0", diff --git a/scripts/merge_schema_markdown.py b/scripts/merge_schema_markdown.py index 657d69ca6..2d3b8255a 100755 --- a/scripts/merge_schema_markdown.py +++ b/scripts/merge_schema_markdown.py @@ -117,7 +117,7 @@ def main(): merged_schema = merge_schema_with_markdown( schema_path, schema_path.with_suffix(".md") ) - + merged_schema["$id"] = merged_schema["$id"].replace("/rule/", "/rule-merged/") with open(OUTPUT_DIR / schema_path.name, "w", encoding="utf-8") as f: json.dump(merged_schema, f, indent=2) f.write("\n")