From bf4cd0adb34e4e031e7bcc951a6422187c1d6295 Mon Sep 17 00:00:00 2001 From: Yuk Kei Wan Date: Mon, 9 Oct 2023 18:12:08 +0800 Subject: [PATCH] fix --- lib/NfcoreSchema.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NfcoreSchema.groovy b/lib/NfcoreSchema.groovy index 9b34804d..cd35a57d 100755 --- a/lib/NfcoreSchema.groovy +++ b/lib/NfcoreSchema.groovy @@ -123,7 +123,7 @@ class NfcoreSchema { has_error = true } // unexpected params - def params_ignore = params.schema_ignore_params.split(',') + 'schema_ignore_params' + def params_ignore = params.validationSchemaIgnoreParams.split(',') + 'schema_ignore_params' def expectedParamsLowerCase = expectedParams.collect{ it.replace("-", "").toLowerCase() } def specifiedParamLowerCase = specifiedParam.replace("-", "").toLowerCase() def isCamelCaseBug = (specifiedParam.contains("-") && !expectedParams.contains(specifiedParam) && expectedParamsLowerCase.contains(specifiedParamLowerCase)) @@ -386,7 +386,7 @@ class NfcoreSchema { // private static JSONObject removeIgnoredParams(raw_schema, params) { // Remove anything that's in params.schema_ignore_params - params.schema_ignore_params.split(',').each{ ignore_param -> + params.validationSchemaIgnoreParams.split(',').each{ ignore_param -> if(raw_schema.keySet().contains('definitions')){ raw_schema.definitions.each { definition -> for (key in definition.keySet()){