Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
improve error message when detecting the old schema draft
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Feb 20, 2024
1 parent 187c018 commit 90ad94f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ public class JsonSchemaValidator {
def String draft = Utils.getValueFromJson("#/\$schema", schema)
if(draft != "https://json-schema.org/draft/2020-12/schema") {
log.error("""Failed to load the meta schema:
The used schema draft (${draft}) is not correct, please use \"https://json-schema.org/draft/2020-12/schema\" instead.
See here for more information: https://json-schema.org/specification#migrating-from-older-drafts
""")
The used schema draft (${draft}) is not correct, please use \"https://json-schema.org/draft/2020-12/schema\" instead.
- If you are a pipeline developer, check our migration guide for more information: https://nextflow-io.github.io/nf-validation/latest/migration_guide/
- If you are a pipeline user, pin the previous version of the plugin (1.1.3) to avoid this error: https://www.nextflow.io/docs/latest/plugins.html#using-plugins
""")
throw new SchemaValidationException("", [])
}

Expand Down

0 comments on commit 90ad94f

Please sign in to comment.