Skip to content

Commit

Permalink
revert to format
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Aug 27, 2024
1 parent 2054550 commit 19ec188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nf_core/pipelines/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ def validate_schema_title_description(self, schema=None):
if "title" not in self.schema:
raise AssertionError("Schema missing top-level `title` attribute")
# Validate that id, title and description match the pipeline manifest
id_attr = f"https://raw.githubusercontent.com/{self.pipeline_manifest['name'].strip('\"\'')}/main/nextflow_schema.json"
pipeline_name = self.pipeline_manifest["name"].strip("\"'")
id_attr = f"https://raw.githubusercontent.com/{pipeline_name}/main/nextflow_schema.json"
if self.schema["$id"] not in [id_attr, id_attr.replace("/main/", "/master/")]:
raise AssertionError(
f"Schema `$id` should be `{id_attr}` or {id_attr.replace("/main/", "/master/")}. \n Found `{self.schema['$id']}`"
Expand Down

0 comments on commit 19ec188

Please sign in to comment.