{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/clarivate/main/json-schema/clarivate-project-schema.json",
  "title": "Project",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarivate-projects-api-openapi.yml#/components/schemas/Project",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the Report."
    },
    "type": {
      "type": "string",
      "description": "Resource type.",
      "enum": [
        "report"
      ]
    },
    "attributes": {
      "$ref": "#/$defs/ProjectAttributes"
    }
  },
  "required": [
    "id",
    "type",
    "attributes"
  ],
  "$defs": {
    "ProjectAttributes": {
      "type": "object",
      "required": [
        "id",
        "title",
        "type",
        "shared",
        "searches_count",
        "sequences_count",
        "documents_count",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "title": {
          "type": "string"
        },
        "author": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_for": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "type": {
          "type": "string"
        },
        "shared": {
          "type": "boolean"
        },
        "searches_count": {
          "type": "integer"
        },
        "sequences_count": {
          "type": "integer"
        },
        "documents_count": {
          "type": "integer"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}