{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/imagenai/json-schema/imagenai-copilot-request-schema.json",
  "title": "CopilotRequest",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/imagenai-openapi.yml#/components/schemas/CopilotRequest",
  "properties": {
    "instruction": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Instruction"
    },
    "parent_version_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Version Id"
    },
    "project_source": {
      "allOf": [
        {
          "$ref": "#/$defs/ProjectSource"
        }
      ],
      "default": "REGULAR"
    }
  },
  "type": "object",
  "required": [
    "instruction"
  ],
  "$defs": {
    "ProjectSource": {
      "type": "string",
      "enum": [
        "REGULAR",
        "I2I"
      ],
      "title": "ProjectSource"
    }
  }
}