{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aopx-fr/json-schema/aopx-fr-recommend-response-schema.json",
  "title": "RecommendResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aopx-fr-openapi.json#/components/schemas/RecommendResponse",
  "properties": {
    "recommendation_id": {
      "type": "string",
      "title": "Recommendation Id"
    },
    "source": {
      "type": "string",
      "const": "PRODUCTION",
      "title": "Source"
    },
    "category": {
      "type": "string",
      "const": "SEARCH",
      "title": "Category"
    },
    "mode": {
      "type": "string",
      "enum": [
        "ECONOMY",
        "BALANCED",
        "CRITICAL"
      ],
      "title": "Mode"
    },
    "status": {
      "type": "string",
      "enum": [
        "OK",
        "DISABLED"
      ],
      "title": "Status"
    },
    "provider_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider Id"
    },
    "fallback_provider_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fallback Provider Id"
    },
    "policy_version": {
      "type": "string",
      "title": "Policy Version"
    },
    "evidence_run_id": {
      "type": "string",
      "title": "Evidence Run Id"
    },
    "reason": {
      "type": "string",
      "title": "Reason"
    },
    "experimental": {
      "type": "boolean",
      "title": "Experimental"
    }
  },
  "type": "object",
  "required": [
    "recommendation_id",
    "source",
    "category",
    "mode",
    "status",
    "provider_id",
    "fallback_provider_id",
    "policy_version",
    "evidence_run_id",
    "reason",
    "experimental"
  ]
}