{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-fallback-create-request-schema.json",
  "title": "FallbackCreateRequest",
  "description": "Request model for creating/updating fallbacks",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-fallback-management-api-openapi.yml#/components/schemas/FallbackCreateRequest",
  "properties": {
    "model": {
      "type": "string",
      "title": "Model",
      "description": "The model name to configure fallbacks for (e.g., 'gpt-3.5-turbo')"
    },
    "fallback_models": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "minItems": 1,
      "title": "Fallback Models",
      "description": "List of fallback model names in order of priority"
    },
    "fallback_type": {
      "type": "string",
      "enum": [
        "general",
        "context_window",
        "content_policy"
      ],
      "title": "Fallback Type",
      "description": "Type of fallback: 'general' (default), 'context_window', or 'content_policy'",
      "default": "general"
    }
  },
  "type": "object",
  "required": [
    "model",
    "fallback_models"
  ]
}