Is this CWL draft2?
is_draft2(x)
CWL object
Logical. TRUE
if it is a CWL draft2 object, FALSE
if not.
system.file("cwl/sbg/workflow/gatk4-wgs.json", package = "tidycwl") %>%
read_cwl(format = "json") %>%
is_draft2()
#> [1] TRUE
system.file("cwl/sbg/workflow/rnaseq-salmon.json", package = "tidycwl") %>%
read_cwl(format = "json") %>%
is_draft2()
#> [1] FALSE