{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-add-contact-request-schema.json",
  "title": "AddContactRequest",
  "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/AddContactRequest",
  "type": "object",
  "properties": {
    "role": {
      "type": "string",
      "description": "The role of the contact person.",
      "enum": [
        "LOCAL_CONTACT",
        "TECHNICAL",
        "PLANNED_WORK",
        "ALARM_CONTACT"
      ]
    },
    "firstName": {
      "type": "string",
      "description": "The first name of the contact person.",
      "maxLength": 30,
      "minLength": 0
    },
    "lastName": {
      "type": "string",
      "description": "The last name of the contact person.",
      "maxLength": 30,
      "minLength": 0
    },
    "phoneNumber": {
      "type": "string",
      "description": "The phone number of the contact person. Phone number should consist only of digits, spaces, dashes with optional leading plus. If missing the value of 'mobileNumber' will be used."
    },
    "mobileNumber": {
      "type": "string",
      "description": "The mobile number of the contact person. Phone number should consist only of digits, spaces, dashes with optional leading plus.",
      "minLength": 1
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "The email address of the contact person.",
      "minLength": 1
    },
    "siteIds": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "The list of site IDs to which the contact should be added."
      },
      "minItems": 1
    }
  },
  "required": [
    "email",
    "firstName",
    "lastName",
    "mobileNumber",
    "role",
    "siteIds"
  ]
}