TM Forum · Schema

Quantity

An amount in a given unit

TelcoTelecommunicationsBSSOSSOpen APIsStandards

Properties

Name Type Description
amount number Numeric value in a given unit
units string Unit
View JSON Schema on GitHub

JSON Schema

tm-forum-quantity-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Quantity",
  "title": "Quantity",
  "type": "object",
  "description": "An amount in a given unit",
  "properties": {
    "amount": {
      "type": "number",
      "format": "float",
      "default": 1,
      "description": "Numeric value in a given unit"
    },
    "units": {
      "type": "string",
      "description": "Unit"
    }
  }
}