File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/groovy/nextflow/validation Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11package nextflow.validation.utils
22
33import org.yaml.snakeyaml.Yaml
4+ import org.yaml.snakeyaml.LoaderOptions
45import org.json.JSONArray
56import org.json.JSONObject
67import org.json.JSONPointer
@@ -85,7 +86,9 @@ public class Files {
8586 }
8687
8788 if (fileType == " yaml" ){
88- return new Yaml (). load((file. text))
89+ def LoaderOptions yamlLoaderOptions = new LoaderOptions ()
90+ yamlLoaderOptions. setCodePointLimit(50 * 1024 * 1024 )
91+ return new Yaml (yamlLoaderOptions). load((file. text))
8992 }
9093 else if (fileType == " json" ){
9194 return new JsonSlurper (). parseText(file. text)
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ class ExistsEvaluator implements Evaluator {
3030 }
3131
3232 def String value = node. asString()
33- def Path file = Nextflow . file(value) as Path
3433 def Boolean exists
34+ def Path file
3535
3636 try {
3737 file = Nextflow . file(value) as Path
You can’t perform that action at this time.
0 commit comments