{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/QuantityValue.schema.json",
  "title": "QuantityValue",
  "description": "A numeric amount with its unit of measure, where the unit is a code from a named unit system. The property holding the value says what is measured.",
  "type": "object",
  "properties": {
    "quantity_value": {
      "type": "number",
      "description": "The numeric amount, expressed in the stated unit without implicit conversion or rounding."
    },
    "unit_code": {
      "type": "string",
      "description": "The code of the unit of measure within the unit system named by unit_scheme."
    },
    "unit_scheme": {
      "type": "string",
      "enum": [
        "ucum",
        "unece_rec20"
      ],
      "$comment": "https://publicschema.org/vocab/unit-system",
      "description": "The unit system that defines unit_code, such as the Unified Code for Units of Measure."
    }
  },
  "required": [
    "quantity_value",
    "unit_code",
    "unit_scheme"
  ]
}
