{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scale-ai/json-schema/scale-ai-restorable-partial-application-spec-request-schema.json",
  "title": "RestorablePartialApplicationSpecRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scale-ai-application-specs-api-openapi.yml#/components/schemas/RestorablePartialApplicationSpecRequest",
  "oneOf": [
    {
      "$ref": "#/$defs/PartialApplicationSpecRequest"
    },
    {
      "$ref": "#/$defs/RestoreRequest"
    }
  ],
  "$defs": {
    "PartialApplicationSpecRequest": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The name of the Application Spec"
        },
        "description": {
          "type": "string",
          "title": "Description",
          "description": "The description of the Application Spec"
        },
        "theme_id": {
          "title": "Theme Id",
          "can_patch": true,
          "type": "string"
        },
        "run_online_evaluation": {
          "title": "Run Online Evaluation",
          "description": "Whether the application spec should run online evaluation, default is `false`",
          "type": "boolean"
        },
        "restore": {
          "type": "boolean",
          "const": false,
          "title": "Restore",
          "description": "Set to true to restore the entity from the database.",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "PartialApplicationSpecRequest"
    },
    "RestoreRequest": {
      "properties": {
        "restore": {
          "type": "boolean",
          "const": true,
          "title": "Restore",
          "description": "Set to true to restore the entity from the database."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "restore"
      ],
      "title": "RestoreRequest"
    }
  }
}