Skip to content

QuantitativeValue

A QuantitativeValue is a number with a unit: a weight, a dimension, a stock quantity. unitCode is a UN/CEFACT Common Code, such as KGM for kilograms, CMT for centimeters or C62 for pieces.

Modeled on schema.org/QuantitativeValue ยท JSON Schema

Example

{
  "value": 0.32,
  "unitCode": "KGM"
}

Fields

Required: unitCode, value.

Field Type Required Description
at_type QuantitativeValue JSON-LD @type, the object's type name.
maxValue number See schema.org/maxValue.
minValue number See schema.org/minValue.
unitCode string Yes See schema.org/unitCode.
unitText string See schema.org/unitText.
value number Yes See schema.org/value.