{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/JiraExpressionAnalysis",
  "title": "JiraExpressionAnalysis",
  "additionalProperties": false,
  "description": "Details about the analysed Jira expression.",
  "properties": {
    "complexity": {
      "$ref": "#/components/schemas/JiraExpressionComplexity"
    },
    "errors": {
      "description": "A list of validation errors. Not included if the expression is valid.",
      "items": {
        "$ref": "#/components/schemas/JiraExpressionValidationError"
      },
      "type": "array"
    },
    "expression": {
      "description": "The analysed expression.",
      "type": "string"
    },
    "type": {
      "description": "EXPERIMENTAL. The inferred type of the expression.",
      "type": "string"
    },
    "valid": {
      "description": "Whether the expression is valid and the interpreter will evaluate it. Note that the expression may fail at runtime (for example, if it executes too many expensive operations).",
      "type": "boolean"
    }
  },
  "required": [
    "expression",
    "valid"
  ],
  "type": "object"
}