Add amino acids to schema

master
kts of kettek (muzukashi) 2017-02-22 02:17:44 -08:00
parent d90f80ce96
commit 8668286e85
1 changed files with 42 additions and 0 deletions

View File

@ -25,6 +25,39 @@
}
},
"amino-acid": {
"title": "Amino Acid",
"description": "An amino acid Entry for Nutriman",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Name of the amino acid",
"type": "string"
},
"type": {
"title": "Type",
"description": "Essential, conditional, or dispensable",
"type": "string"
},
"intake": {
"type": "object",
"title": "Minimum daily intake",
"properties": {
"amount": {
"title": "mg per kg body weight",
"description": "The amount of mg of the amino acid for each kg of body weight",
"type": "string"
},
"ref": {
"title": "Reference",
"description": "The reference id of the intake",
"type": "string"
}
}
}
}
},
"mineral": {
"title": "Mineral",
"description": "A Mineral Entry for Nutriman",
@ -93,6 +126,15 @@
},
"title": "Nutritional Data Sheet",
"properties": {
"amino-acids": {
"title": "Amino Acids",
"description": "A list of all amino acids",
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/definitions/amino-acid"
}
},
"vitamins": {
"title": "Vitamins",
"description": "A list of all vitamins",