{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-case-response-schema.json",
  "title": "CaseResponse",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telenor-sverige-fixed-network-order-openapi.yml#/components/schemas/CaseResponse",
  "type": "object",
  "properties": {
    "caseId": {
      "type": "string",
      "description": "The unique sequential identifier of the case."
    },
    "status": {
      "type": "string",
      "description": "The status of the case."
    },
    "condition": {
      "type": "string",
      "description": "The condition of the case."
    },
    "type": {
      "type": "string",
      "description": "The type of the case."
    },
    "promisedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The promised date of the case"
    },
    "createdDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date, case was created"
    },
    "updatedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date, case was updated."
    },
    "siteId": {
      "type": "string",
      "description": "The site id related to the case."
    },
    "siteProductId": {
      "type": "string",
      "deprecated": true,
      "description": "The site's associated product id."
    },
    "siteProductName": {
      "type": "string",
      "deprecated": true,
      "description": "The site's associated product name."
    },
    "siteProductDescription": {
      "type": "string",
      "deprecated": true,
      "description": "The site's associated product description."
    },
    "services": {
      "type": "array",
      "description": "The services associated with the case.",
      "items": {
        "$ref": "#/$defs/CaseService"
      }
    }
  },
  "$defs": {
    "CaseService": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "description": "The status of the service."
        },
        "serialNo": {
          "type": "string",
          "description": "The serial number of the service."
        },
        "partNumber": {
          "type": "string",
          "description": "The part number of the service."
        },
        "line": {
          "type": "string",
          "description": "The line associated with the service."
        },
        "family": {
          "type": "string",
          "description": "The product family of the service."
        }
      }
    }
  }
}