{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rockwell-automation/json-schema/rockwell-automation-field-type-schema.json",
  "title": "FieldType",
  "description": "The FieldType Model.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rockwell-automation-custom-fields-api-api-openapi.yml#/components/schemas/FieldType",
  "type": "object",
  "properties": {
    "fieldTypeName": {
      "type": "string",
      "description": "The name of the data type used internally by the system."
    },
    "fieldTypeLabel": {
      "type": "string",
      "description": "The display name of the data type that is used as a label on forms within Plex."
    },
    "availableConstraints": {
      "$ref": "#/$defs/FieldTypeAvailableConstraints"
    }
  },
  "required": [
    "fieldTypeName",
    "fieldTypeLabel",
    "availableConstraints"
  ],
  "$defs": {
    "FieldTypeAvailableConstraints": {
      "type": "object",
      "description": "The FieldTypeAvailableConstraints Model.",
      "properties": {
        "unique": {
          "type": "boolean",
          "description": "Indicates that custom field definitions of the field type can be configured so that values for the custom field must be unique among resource records of a standard object."
        },
        "required": {
          "type": "boolean",
          "description": "Indicates that custom field definitions of the field type can be configured so that values for the custom field on resources can be required."
        },
        "minimumValue": {
          "type": "boolean",
          "description": "Indicates that custom field definitions of the field type may be configured to have a minimum value. Values of the custom field must be greater than the minimum value, or greater than or equal to the minimum value if the minimumValueInclusive flag is turned on."
        },
        "minimumValueInclusive": {
          "type": "boolean",
          "description": "Indicates that custom field definitions of the field type may be configured so that the minimum value set on the field definition is an allowed value on resources."
        },
        "maximumValue": {
          "type": "boolean",
          "description": "Indicates that custom field definitions of the field type may be configured to have a maximum value. Values of the custom field must be less than the maximum value, or less than or equal to the maximum value if the maximumValueInclusive flag is turned on."
        },
        "maximumValueInclusive": {
          "type": "boolean",
          "description": "Indicates that custom field definitions of the field type may be configured so that the maximum value set on the field definition is an allowed value on resources."
        },
        "allowedValues": {
          "type": "boolean",
          "description": "Indicates that custom field definitions of the field type may be configured with a list of specified values which are the only allowed values for a custom field on a resource."
        },
        "maximumLength": {
          "type": "boolean",
          "description": "Indicates that custom field definitions of the field type may be configured with a maximum length. Values of the custom field must have a length less than or equal to the specified maximum length of the definition."
        }
      },
      "required": [
        "unique",
        "required",
        "minimumValue",
        "minimumValueInclusive",
        "maximumValue",
        "maximumValueInclusive",
        "allowedValues",
        "maximumLength"
      ]
    }
  }
}