Skip to content

Commit

Permalink
json schema first draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ondov committed Jan 6, 2017
1 parent 23776db commit 32f70ab
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions src/mash/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"$schema" : "http://json-schema.org/schema#",
"type" : "object",
"additionalProperties" : false,
"required" :
[
"kmer",
"alphabet",
"preserveCase",
"canonical",
"sketchSize",
"hashType",
"hashBits",
"hashSeed"
],
"properties" :
{
"kmer" : {"type" : "number"},
"alphabet" : {"type" : "string"},
"preserveCase" : {"type" : "boolean"},
"canonical" : {"type" : "boolean"},
"sketchSize" : {"type" : "number"},
"hashType" :
{
"type" : "string",
"enum" :
[
"MurmurHash3_x64_128"
]
},
"hashBits" : {"type" : "number"},
"hashSeed" : {"type" : "number"},
"sketches" :
{
"type" : "array",
"items" :
{
"type" : "object",
"additionalProperties" : false,
"required" :
[
"name",
"hashes"
],
"properties" :
{
"name" : {"type" : "string"},
"length" : {"type" : "number"},
"comment" : {"type" : "string"},
"hashes" :
{
"type" : "array",
"uniqueItems" : true,
"items" :
{
"type" : "string",
"pattern" : "^[0-9]+$"
}
},
"kmers" :
{
"type" : "array",
"items" : {"type" : "string"}
}
}
}
}
}
}

0 comments on commit 32f70ab

Please sign in to comment.