Skip to content

specify YAML version, which schema #93

@mr-c

Description

@mr-c

the CWL reference runner supports YAML 1.2 with the core schema via ruamel.yaml

Java based CWL parsers tend to either use snakeyaml which is YAML 1.1 only. snakeyaml-engine supports YAML 1.2, but only the JSON schema, and not the core schema.

Some fun examples of why this matters:

  1. False (capital F) being interpreted as a boolean as in
    - { valueFrom: "echo foo 1>&2", shellQuote: False }
    is not supported in YAML 1.2 unless the parser supports the core schema, not just the JSON schema.
  2. Yes (unquoted) is interpreted as a boolean in YAML 1.1, but not YAML 1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions