diff --git a/plugins/nf-validation/src/main/nextflow/validation/JsonSchemaValidator.groovy b/plugins/nf-validation/src/main/nextflow/validation/JsonSchemaValidator.groovy index 7ca64064..fd57eed4 100644 --- a/plugins/nf-validation/src/main/nextflow/validation/JsonSchemaValidator.groovy +++ b/plugins/nf-validation/src/main/nextflow/validation/JsonSchemaValidator.groovy @@ -37,9 +37,12 @@ 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, i.e. set `plugins { + id 'nf-validation@1.1.3' +}` in your `nextflow.config` file + """) throw new SchemaValidationException("", []) }