{
   "definitions":{
   },
   "$schema":"http://json-schema.org/draft-07/schema#",
   "$id":"https://github.com/GW-HIVE/glygen-backend-api/tree/master/specs/data/download/request.schema.json",
   "type":"object",
   "title":"GlyGen download request schema",
   "required":[
      "type",
      "format",
      "id",
      "compressed"
   ],
   "properties":{
      "type":{
         "$id":"#/properties/type",
         "type":"string",
         "description":"Type of download request. Depends on the page (e.g. protein_list, glycan_list, glycan, protein).",
         "examples":[
            "protein_list"
         ],
         "pattern":"^(.*)$"
      },
      "format":{
         "$id":"#/properties/format",
         "type":"string",
         "description":"Format of the download (e.g. fasta, csv)",
         "examples":[
            "fasta"
         ],
         "pattern":"^(.*)$"
      },
      "id":{
         "$id":"#/properties/id",
         "type":"string",
         "description":"An id that identifies what to download. For a list page its the list ID. For a details page its the ID of the glycan or protein.",
         "examples":[
            "ab9387234d8f3"
         ],
         "pattern":"^(.*)$"
      },
      "compressed":{
         "$id":"#/properties/compressed",
         "type":"boolean",
         "description":"Indicates if the response should be zip compressed.",
         "default":false,
         "examples":[
            true
         ]
      }
   }
}
