From cb4c0d622c7052d10688582766307e4c9b7b55aa Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Mon, 22 Apr 2024 14:33:45 +0200 Subject: [PATCH] Revert "improve error message when detecting the old schema draft" --- .../main/nextflow/validation/JsonSchemaValidator.groovy | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/nf-validation/src/main/nextflow/validation/JsonSchemaValidator.groovy b/plugins/nf-validation/src/main/nextflow/validation/JsonSchemaValidator.groovy index fd57eed..7ca6406 100644 --- a/plugins/nf-validation/src/main/nextflow/validation/JsonSchemaValidator.groovy +++ b/plugins/nf-validation/src/main/nextflow/validation/JsonSchemaValidator.groovy @@ -37,12 +37,9 @@ 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. - - 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 - """) +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 +""") throw new SchemaValidationException("", []) }