{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-cm-data-core-profiles-api-models-api-profile-type-property-schema.json",
  "title": "CM.Data.Core.Profiles.Api.Models.ApiProfileTypeProperty",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-mobile-marketing-cloud-cdp-profiles-v1-openapi.yml#/components/schemas/CM.Data.Core.Profiles.Api.Models.ApiProfileTypeProperty",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "$ref": "#/$defs/CM.Data.Domain.Enums.PropertyType"
    },
    "possibleOriginTypes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CM.Data.Domain.Enums.PropertyType"
      }
    },
    "isKey": {
      "type": "boolean"
    },
    "externalKey": {
      "$ref": "#/$defs/CM.Data.Core.Profiles.Shared.Enums.ExternalKey"
    },
    "isNotIndexed": {
      "type": "boolean"
    },
    "maxOccurences": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "displayModel": {
      "$ref": "#/$defs/CM.Data.Core.Profiles.Api.Models.ApiPropertyDisplayModel"
    },
    "operatorName": {
      "type": [
        "string",
        "null"
      ]
    },
    "sourceEventTypeIds": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "sourceProfileTypeIds": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "format": "uuid"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CM.Data.Core.Profiles.Api.Models.ApiPropertyDisplayModel": {
      "type": "object",
      "properties": {
        "index": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "isVisible": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "CM.Data.Core.Profiles.Shared.Enums.ExternalKey": {
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        13,
        14,
        15,
        16,
        17,
        18,
        19,
        20,
        21,
        22,
        23,
        24
      ],
      "type": "integer",
      "format": "int32"
    },
    "CM.Data.Domain.Enums.PropertyType": {
      "enum": [
        0,
        1,
        2,
        100,
        101,
        102,
        103,
        104
      ],
      "type": "integer",
      "format": "int32"
    }
  }
}