Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions types/ProductIngredientType.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
{
"description": "Describes an ingredient of a product (for example, an active ingredient).",
"type": "object",
"required": [ "name" ],
"required": [
"name"
],
"properties": {
"id" :{
"$ref" : "../types/IdentifierType.json",
"id": {
"$ref": "../types/IdentifierType.json",
"description": "Id of an ingredient of a product specified as a scheme and id."
},
"name": {
"type": "string",
"description": "Human readable description of the ingredient"
}
},
"percent": {
"type": "number",
"description": "Percentage of the ingredient in the product"
}
},
"examples": [
{
"id": {
"scheme": "com.fertco.product",
"id": "4000"

"id": 4000000
},
"name": "Granular Ammonium Sulphate Bulk"
"name": "Granular Ammonium Sulphate",
"percent": 47.6
}
]
}
}