{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/eliq/main/json-schema/eliq-location-profile-settings-schema.json",
  "title": "LocationProfileSettings",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eliq-location-profile-api-openapi.yml#/components/schemas/LocationProfileSettings",
  "required": [
    "groups",
    "settings"
  ],
  "type": "object",
  "properties": {
    "settings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LocationProfileSetting"
      }
    },
    "groups": {
      "uniqueItems": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "LocationProfileDataType": {
      "enum": [
        "single_select",
        "multiple_select",
        "number"
      ],
      "type": "string"
    },
    "LocationProfilePossibleValue": {
      "type": "object",
      "properties": {
        "value": {
          "type": [
            "string",
            "null"
          ]
        },
        "developer_description": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "LocationProfilePropertyRequirement": {
      "type": "object",
      "properties": {
        "key": {
          "type": [
            "string",
            "null"
          ]
        },
        "accepted_values": {
          "type": [
            "array",
            "null"
          ],
          "items": {}
        }
      }
    },
    "LocationProfileSelectedValue": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "value": {},
        "from": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "LocationProfileSetting": {
      "required": [
        "data_type",
        "dependent_properties",
        "developer_description",
        "group",
        "key",
        "possible_values",
        "selected_values",
        "tags"
      ],
      "type": "object",
      "properties": {
        "key": {
          "minLength": 1,
          "type": "string"
        },
        "data_type": {
          "$ref": "#/$defs/LocationProfileDataType"
        },
        "selected_values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocationProfileSelectedValue"
          }
        },
        "possible_values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocationProfilePossibleValue"
          }
        },
        "limits": {
          "$ref": "#/$defs/LocationPropertyLimit"
        },
        "dependent_properties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocationProfilePropertyRequirement"
          }
        },
        "developer_description": {
          "minLength": 1,
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocationProfileTag"
          }
        },
        "group": {
          "minLength": 1,
          "type": "string"
        }
      }
    },
    "LocationProfileTag": {
      "enum": [
        "required_for_sh_to_work",
        "required_for_euc_to_work"
      ],
      "type": "string"
    },
    "LocationPropertyLimit": {
      "type": "object",
      "properties": {
        "min": {
          "type": "number",
          "format": "double"
        },
        "max": {
          "type": "number",
          "format": "double"
        },
        "step": {
          "type": "number",
          "format": "double"
        }
      }
    }
  }
}