{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-safe-contact-schema.json",
  "title": "SafeContact",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telenor-sverige-geographic-sites-management-openapi.yml#/components/schemas/SafeContact",
  "type": "object",
  "properties": {
    "contactId": {
      "type": "string",
      "description": "The unique identifier of a contact."
    },
    "role": {
      "type": "string",
      "description": "The role of the contact person."
    },
    "type": {
      "type": "string",
      "description": "The type of the contact person."
    },
    "firstName": {
      "type": "string",
      "description": "The first name of the contact person."
    },
    "lastName": {
      "type": "string",
      "description": "The last name of the contact person."
    },
    "phone": {
      "type": "string",
      "description": "The phone number of the contact person."
    },
    "mobilePhone": {
      "type": "string",
      "description": "The mobile number of the contact person."
    },
    "email": {
      "type": "string",
      "description": "The email address of the contact person."
    },
    "roles": {
      "type": "array",
      "description": "The roles of the contact person in their sites.",
      "items": {
        "$ref": "#/$defs/Role"
      }
    }
  },
  "$defs": {
    "Role": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string",
          "description": "The role of the contact person in a site."
        },
        "type": {
          "type": "string",
          "description": "The type of the contact details in a given site."
        },
        "siteId": {
          "type": "string",
          "description": "The unique identifier of a site."
        }
      }
    }
  }
}