# Contains arrays and intra-file type reference

# class: SchemaDefRequirement
# types: ...
# This form does not work with cwltool, even though it can be found here
# https://github.com/NCI-GDC/gdc-dnaseq-cwl/blob/master/tools/readgroup_path.yml
# Notably, that .yml file is never used, so likely they tried it, failed and
# forgot to take it out


  - name: sample_meta2  #duplicate names are not fine across files
    type: record
    fields:
      - name: prop
        type: string

  - name: study_meta
    type: array
    items: sample_meta2

  # Apparently can't declare an array inside an array?
  # - name: study_meta_too
  #   type: array
  #   items: [string, sample_meta2, study_meta]
    
  - name: study_meta_too
    type: record
    fields:
      meta1: sample_meta2
      meta2: study_meta
