Schema: Product

Schema Definition

{
    "$schema": "http://json-schema.org/schema#",
    "properties": {
        "id": {
            "description": "The Product Unique Identifer from the CRE",
            "type": "string"
        },
        "name": {
            "description": "Free-form name of the Product",
            "type": "string"
        },
        "package": {
            "properties": {
                "id": {
                    "description": "Well-known ID of Package Descriptor",
                    "type": "string"
                },
                "net": {
                    "description": "Net weight details as object",
                    "type": "object"
                },
                "net_volume": {
                    "type": "number"
                },
                "net_weight": {
                    "type": "number"
                },
                "unit_count": {
                    "type": "number"
                }
            },
            "type": "object"
        },
        "serving": {
            "properties": {
                "portion": {
                    "properties": {
                        "qty": {
                            "type": "number"
                        },
                        "uom": {
                            "type": "string"
                        }
                    },
                    "type": "object"
                },
                "qty": {
                    "type": "number"
                }
            },
            "type": "object"
        },
        "type": {
            "$ref": "#/components/schemas/Product_Type"
        }
    },
    "type": "object"
}

Schema Samples