TM Forum · Schema

ProductTerm

TelcoTelecommunicationsBSSOSSOpen APIsStandards
View JSON Schema on GitHub

JSON Schema

tm-forum-productterm-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ProductTerm",
  "title": "ProductTerm",
  "allOf": [
    {
      "$ref": "#/components/schemas/Extensible"
    },
    {
      "type": "object",
      "description": "Description of a productTerm linked to this product. This represent a commitment with a duration",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of the productTerm"
        },
        "duration": {
          "$ref": "#/components/schemas/Duration"
        },
        "validFor": {
          "$ref": "#/components/schemas/TimePeriod"
        },
        "name": {
          "type": "string",
          "description": "Name of the productTerm",
          "example": "12months commitment"
        }
      }
    }
  ],
  "discriminator": {
    "propertyName": "@type",
    "mapping": {
      "ProductTerm": "#/components/schemas/ProductTerm"
    }
  }
}