diff --git a/types/ProductIngredientType.json b/types/ProductIngredientType.json index 43227e6..22ec721 100644 --- a/types/ProductIngredientType.json +++ b/types/ProductIngredientType.json @@ -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 } ] -} +} \ No newline at end of file