{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adro1b33/main/json-schema/adro1b33-ai-recommendation-response-schema.json",
  "title": "AiRecommendationResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adro1b33-ai-api-openapi.yml#/components/schemas/AiRecommendationResponse",
  "type": "object",
  "properties": {
    "baseRevision": {
      "type": "integer"
    },
    "summary": {
      "type": "string"
    },
    "findings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AiFinding"
      }
    },
    "changes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AiRecommendationChange"
      }
    },
    "proposedUnifiedConfig": {},
    "needsHumanSupport": {
      "type": "boolean"
    },
    "supportSummary": {
      "type": "string"
    }
  },
  "required": [
    "baseRevision",
    "changes",
    "findings",
    "needsHumanSupport",
    "proposedUnifiedConfig",
    "summary",
    "supportSummary"
  ],
  "$defs": {
    "AiFinding": {
      "type": "object",
      "properties": {
        "severity": {
          "enum": [
            "blocker",
            "warning",
            "info"
          ],
          "type": "string",
          "description": "* `blocker` - blocker\n* `warning` - warning\n* `info` - info",
          "x-spec-enum-id": "89eaa3468c08a8fe"
        },
        "title": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        },
        "action": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "detail",
        "severity",
        "title"
      ]
    },
    "AiRecommendationChange": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "before": {},
        "after": {},
        "reason": {
          "type": "string"
        }
      },
      "required": [
        "after",
        "before",
        "path",
        "reason"
      ]
    }
  }
}