{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/johnson-controls/json-schema/johnson-controls-condition-schema.json",
  "title": "condition",
  "description": "This property contains condition flags (if any are set) for the properties of\n`item`. If none of the properties have any condition flags set, then\n`condition` will not be included in the response or it will be empty.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/johnson-controls-objects-api-openapi.yml#/components/schemas/condition",
  "type": "object",
  "readOnly": true,
  "additionalProperties": {
    "type": "object",
    "description": "The condition flags for one of the attributes in the `item`",
    "properties": {
      "priority": {
        "type": "string",
        "x-metasysType": "enum",
        "x-metasysEnum": "writePriorityEnumSet",
        "description": "This condition applies only to prioritized attributes. It contains the\ncurrent priority of the attribute. This condition is not listed if it\ndoes not apply to an attribute or if the condition has its default\nvalue.\n\n\nThe values for this property come from the `writePriorityEnumSet` enumeration.\nFind the definition of `writePriorityEnumSet` at the relative URL of `/schemas/enums/writePriorityEnumSet`.\n\n**See also:**\n* [Get enumeration](#operation/getEnumerationAsJsonSchema) for more information on retrieving an enumeration.",
        "default": "writePriorityEnumSet.priorityNone"
      },
      "reliability": {
        "type": "string",
        "x-metasysType": "enum",
        "x-metasysEnum": "reliabilityEnumSet",
        "description": "This condition contains the current reliability of the attribute. This\ncondition is not listed if it has its default value.\n\n\nThe values for this property come from the `reliabilityEnumSet` enumeration.\nFind the definition of `reliabilityEnumSet` at the relative URL of `/schemas/enums/reliabilityEnumSet`.\n\n**See also:**\n* [Get enumeration](#operation/getEnumerationAsJsonSchema) for more information on retrieving an enumeration.",
        "default": "reliabilityEnumSet.reliable"
      },
      "status": {
        "type": "string",
        "x-metasysType": "enum",
        "x-metasysEnum": "objectStatusEnumSet",
        "description": "This condition contains the current status of the attribute. This\ncondition is not listed if it has its default value.\n\n\nThe values for this property come from the `objectStatusEnumSet` enumeration.\nFind the definition of `objectStatusEnumSet` at the relative URL of `/schemas/enums/objectStatusEnumSet`.\n\n**See also:**\n* [Get enumeration](#operation/getEnumerationAsJsonSchema) for more information on retrieving an enumeration.",
        "default": "objectStatusEnumSet.osNormal"
      },
      "error": {
        "type": "string",
        "x-metasysType": "enum",
        "x-metasysEnum": "statusEnumSet",
        "description": "This condition contains any error that occurred while trying to read an\nattribute. This condition is not listed if it has its default value.\n\n\nThe values for this property come from the `statusEnumSet` enumeration.\nFind the definition of `statusEnumSet` at the relative URL of `/schemas/enums/statusEnumSet`.\n\n**See also:**\n* [Get enumeration](#operation/getEnumerationAsJsonSchema) for more information on retrieving an enumeration.",
        "default": "statusEnumSet.ok"
      }
    }
  }
}