Skip to content

Any[] is incompatible with any array type apart from Any[] #638

Closed
@ThomasHickman

Description

@ThomasHickman

With the workflow:

cwlVersion: v1.0
class: Workflow

inputs:
  input:
    type: Any[]

steps: []

outputs:
  - id: output
    type: string[]
    outputSource: input

cwltool --validate reports the error:

/usr/local/bin/cwltool 1.0.20180130110340
Resolved 'workflows/test_workflow.cwl' to 'file:///Users/th10/checkouts/arvados-pipeline/arvados-pipelines/cwl/workflows/test_workflow.cwl'
Tool definition failed validation:
workflows/test_workflow.cwl:6:5: Source 'input' of type {"type": "array", "items": "Any"} is incompatible
workflows/test_workflow.cwl:12:5:   with sink 'output' of type {"type": "array", "items": "string"}

Any is supposed to be compatible with any other type, so Any[] should be compatible with any other array type - this is not the case.

Your Environment

  • cwltool version: 1.0.20180130110340

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions