Unverified Commit 0f2b51c3 authored by Isuru Liyanage's avatar Isuru Liyanage Committed by GitHub
Browse files

Merge pull request #14 from elixir-europe/add_test_schema_for_docker_quickstart

add biosamples test schema for docker quickstart
parents 4096b336 b06b46c1
{
"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