Skip to content

Instantly share code, notes, and snippets.

@23jodys
Created December 30, 2014 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 23jodys/048ce26ff5333bff7745 to your computer and use it in GitHub Desktop.
Save 23jodys/048ce26ff5333bff7745 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/schema#"
"definitions":{
"target": {
"type": "object",
"properties": {
"primer_size_min": {"type": "number", "minimum": 10, "maximum": 30},
"primer_size_max": {"type": "number", "minimum": 20, "maximum": 40}
},
"required": ["primer_size_min", "primer_size_max"]
},
"DNA_TILE": {
"type": "object",
{"ref": "#/definitions/target"},
"properties": {
"moltype": {"type": "string", "pattern": "DNA"},
"tile_size": {"type": "number", "minimum": 40, "maximum": 120}
},
"required": ["moltype", "tile_size"]
}
"RNA_FUSION": {
"type": "object",
{"ref": "#/definitions/target"},
"properties": {
"moltype": {"type": "string", "pattern": "RNA"},
}
}
},
"type": "object",
"properties":
{
"metadata": {
"type": "object",
"properties": {
"email": {"type": "string"},
"name": {"type": "string"}
}
},
"targets": {
"type": "object",
"additionalProperties":
{
"oneOf": [ {"ref": "#/definitions/DNA_TILE"},{"ref": "#/definitions/RNA_FUSION"}]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment