{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/centaur-labs/json-schema/centaur-labs-project-response-schema.json",
  "title": "ProjectResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/centaur-labs-add-and-manage-projects-api-openapi.yml#/components/schemas/ProjectResponse",
  "properties": {
    "org_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Org Id",
      "default": 1
    },
    "name": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1,
      "title": "Name"
    },
    "content_type": {
      "$ref": "#/$defs/ContentType"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "contains_image_series": {
      "type": "boolean",
      "title": "Contains Image Series",
      "default": false
    },
    "copy_files": {
      "type": "boolean",
      "title": "Copy Files"
    },
    "views": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "maxLength": 20,
            "minLength": 1
          },
          "type": "array",
          "maxLength": 10,
          "minLength": 1,
          "unique_items": true
        },
        {
          "type": "null"
        }
      ],
      "title": "Views"
    },
    "project_id": {
      "type": "integer",
      "title": "Project Id"
    },
    "task_types": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Task Types",
      "description": "Distinct task types used in this project"
    },
    "dataset_type": {
      "anyOf": [
        {
          "$ref": "#/$defs/DatasetTypes"
        },
        {
          "type": "null"
        }
      ],
      "description": "The dataset type of the project"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At",
      "description": "When the project was created"
    }
  },
  "type": "object",
  "required": [
    "name",
    "content_type",
    "copy_files",
    "project_id"
  ],
  "$defs": {
    "ContentType": {
      "type": "string",
      "enum": [
        "image",
        "video",
        "audio",
        "text",
        "html",
        "dicom",
        "pdf"
      ],
      "title": "ContentType"
    },
    "DatasetTypes": {
      "type": "string",
      "enum": [
        "study_break",
        "research",
        "sample",
        "inactive_customer",
        "test",
        "customer"
      ],
      "title": "DatasetTypes"
    }
  }
}