Add amino acids to schema
parent
d90f80ce96
commit
8668286e85
42
schema.json
42
schema.json
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue