{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-product-type-schema.json",
  "title": "ProductType",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telenor-sverige-fixed-network-product-catalog-openapi.yml#/components/schemas/ProductType",
  "type": "object",
  "properties": {
    "id": {
      "format": "int32",
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "productTypeRules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductTypeRule"
      }
    }
  },
  "$defs": {
    "ProductTypeRule": {
      "type": "object",
      "properties": {
        "required": {
          "description": "If the attribute is required or not",
          "type": "boolean"
        },
        "attributeName": {
          "description": "The name of the product attribute, such as 'qos' or 'sla'",
          "type": "string"
        },
        "href": {
          "description": "The href to the product attribute values (if applicable)",
          "type": "string"
        },
        "cardinality": {
          "description": "Describes the cardinality of this rule, e.g. 1, 1..*, etc.",
          "type": "string"
        }
      }
    }
  }
}