{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-service-schema.json",
  "title": "Service",
  "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/Service",
  "type": "object",
  "properties": {
    "id": {
      "format": "int32",
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "defaultSelected": {
      "description": "If the service is default selected. Can be overridden by choosing another service",
      "type": "boolean"
    },
    "cardinality": {
      "$ref": "#/$defs/CardinalityConstraints"
    },
    "description": {
      "description": "The description of the addon service.",
      "type": "string"
    },
    "categoryId": {
      "type": "integer",
      "format": "int32",
      "description": "ID of the addon service category."
    },
    "category": {
      "type": "string",
      "description": "Name of the addon service category."
    }
  },
  "$defs": {
    "CardinalityConstraints": {
      "type": "object",
      "properties": {
        "minLimit": {
          "format": "int32",
          "description": "Minimal number of addon instances.",
          "type": "integer"
        },
        "maxLimit": {
          "format": "int32",
          "description": "Maximal number of addon instances, no limit if null.",
          "type": "integer"
        }
      }
    }
  }
}