Is this CWL draft2?

is_draft2(x)

Arguments

x

CWL object

Value

Logical. TRUE if it is a CWL draft2 object, FALSE if not.

Examples

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