Commit b06b46c1 authored by Isuru Liyanage's avatar Isuru Liyanage
Browse files

add biosamples test schema for docker quickstart

parent 4096b336
{
"name": "test_sample_1",
"characteristics": {
"sex": [
{
"text": "Female"
}
]
}
}
\ No newline at end of file
{
"name": "test_sample_1",
"characteristics": {
"organism": [
{
"text": "Homo Sapiens"
}
]
}
}
\ No newline at end of file
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "biosamples-minimal.json",
"additionalProperties": true,
"definitions": {
"nonEmptyString": {
"type": "string",
"minLength": 1
}
},
"required": [
"name",
"characteristics"
],
"title": "sample",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"accession": {
"type": "string"
},
"characteristics": {
"type": "object",
"anyOf": [
{
"required": [
"organism"
]
},
{
"required": [
"Organism"
]
},
{
"required": [
"species"
]
},
{
"required": [
"Species"
]
}
],
"properties": {
"organism": {
"type": "array",
"items": {
"properties": {
"text": {
"$ref": "#/definitions/nonEmptyString"
}
},
"required": [
"text"
]
}
},
"Organism": {
"type": "array",
"items": {
"properties": {
"text": {
"$ref": "#/definitions/nonEmptyString"
}
},
"required": [
"text"
]
}
},
"Species": {
"type": "array",
"items": {
"properties": {
"text": {
"$ref": "#/definitions/nonEmptyString"
}
},
"required": [
"text"
]
}
},
"species": {
"type": "array",
"items": {
"properties": {
"text": {
"$ref": "#/definitions/nonEmptyString"
}
},
"required": [
"text"
]
}
}
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment