####
#### Use kwalify and this schema to validate the GO reference species file.
####
#### Examples:
####    kwalify -E -m metadata/go-reference-species.schema.yaml
####    kwalify -f ./metadata/go-reference-species.schema.yaml ./metadata/go-reference-species.yaml
####    kwalify -f ./metadata/go-reference-species.schema.yaml ./metadata/go-reference-species.yaml | grep INVALID; test $? -ne 0
####
type: seq
sequence:
  - type: map
    mapping:
      "common_name":
        type: str
        required: true
        ## TBD:
        #unique: true
      "organism":
        type: str
        required: true
        unique: true
      "reference_proteome_short_name":
        type: str
        required: true
        unique: true
        pattern: /^[A-Z]+[0-9]*$/
      "taxon_id":
        type: str
        required: false
        unique: true
        pattern: /^NCBITaxon:[0-9]+$/
