{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-ise/json-schema/cisco-ise-condition-schema.json",
  "title": "Condition",
  "description": "<ul><li>Hierarchical structure which defines a set of conditions for which authentication or authorization policy rules could be matched.</li> <li>Logical operations(AND, OR) relationship between conditions are supported</li> <li>Each condition can have subconditions with relation to logical operations</li></ul>",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-ise-device-administration-conditions-api-openapi.yml#/components/schemas/Condition",
  "required": [
    "conditionType"
  ],
  "type": "object",
  "properties": {
    "conditionType": {
      "type": "string",
      "description": "<ul><li>Inidicates whether the record is the condition itself(data) or a logical(or,and) aggregation</li> <li>Data type enum(reference,single) indicates than \"conditonId\" OR \"ConditionAttrs\" fields should contain condition data but not both</li> <li>Logical aggreation(and,or) enum indicates that additional conditions are present under the children field</li></ul>",
      "exampleSetFlag": true,
      "enum": [
        "ConditionAndBlock",
        "ConditionAttributes",
        "ConditionOrBlock",
        "ConditionReference",
        "LibraryConditionAndBlock",
        "LibraryConditionAttributes",
        "LibraryConditionOrBlock",
        "TimeAndDateCondition"
      ]
    },
    "isNegate": {
      "type": "boolean",
      "description": "Indicates whereas this condition is in negate mode",
      "exampleSetFlag": true
    },
    "link": {
      "$ref": "#/$defs/Link",
      "exampleSetFlag": true
    }
  },
  "exampleSetFlag": false,
  "$defs": {
    "Link": {
      "title": "Link",
      "required": [
        "href"
      ],
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "exampleSetFlag": true
        },
        "rel": {
          "type": "string",
          "exampleSetFlag": true,
          "enum": [
            "next",
            "previous",
            "self",
            "status"
          ]
        },
        "type": {
          "type": "string",
          "exampleSetFlag": true
        }
      },
      "exampleSetFlag": false
    }
  }
}