{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/scalar/main/json-schema/scalar-github-project-schema.json",
  "title": "github-project",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scalar-github-api-openapi.yml#/components/schemas/github-project",
  "type": "object",
  "properties": {
    "uid": {
      "default": "nanoid()",
      "$ref": "#/$defs/nanoid"
    },
    "createdAt": {
      "default": "unixTimestamp()",
      "$ref": "#/$defs/timestamp"
    },
    "updatedAt": {
      "default": "unixTimestamp()",
      "$ref": "#/$defs/timestamp"
    },
    "name": {
      "type": "string"
    },
    "activeDeployment": {
      "default": null,
      "anyOf": [
        {
          "$ref": "#/$defs/active-deployment"
        },
        {
          "type": "null"
        }
      ]
    },
    "lastPublished": {
      "default": null,
      "anyOf": [
        {
          "$ref": "#/$defs/timestamp"
        },
        {
          "type": "null"
        }
      ]
    },
    "lastPublishedUid": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "loginPortalUid": {
      "default": "",
      "type": "string"
    },
    "activeThemeId": {
      "default": "",
      "type": "string"
    },
    "typesenseId": {
      "type": "number"
    },
    "isPrivate": {
      "default": false,
      "type": "boolean"
    },
    "agentEnabled": {
      "default": false,
      "type": "boolean"
    },
    "analyticsEnabled": {
      "default": true,
      "type": "boolean"
    },
    "accessGroups": {
      "default": []
    },
    "slug": {
      "$ref": "#/$defs/slug"
    },
    "publishStatus": {
      "default": "",
      "type": "string"
    },
    "publishMessage": {
      "default": "",
      "type": "string"
    },
    "repository": {
      "anyOf": [
        {
          "$ref": "#/$defs/github-project-repository"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "uid",
    "createdAt",
    "updatedAt",
    "name",
    "activeDeployment",
    "lastPublished",
    "lastPublishedUid",
    "loginPortalUid",
    "activeThemeId",
    "isPrivate",
    "agentEnabled",
    "analyticsEnabled",
    "accessGroups",
    "slug",
    "publishStatus",
    "publishMessage"
  ],
  "additionalProperties": false,
  "$defs": {
    "active-deployment": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "publishedAt": {
          "$ref": "#/$defs/timestamp"
        }
      },
      "required": [
        "uid",
        "domain",
        "publishedAt"
      ],
      "additionalProperties": false
    },
    "github-project-repository": {
      "type": "object",
      "properties": {
        "linkedBy": {
          "type": "string"
        },
        "id": {
          "type": "number"
        },
        "name": {
          "type": "string",
          "minLength": 2
        },
        "configPath": {
          "default": "",
          "type": "string"
        },
        "branch": {
          "default": "",
          "type": "string"
        },
        "publishOnMerge": {
          "default": false,
          "type": "boolean"
        },
        "publishPreviews": {
          "default": false,
          "type": "boolean"
        },
        "prComments": {
          "default": false,
          "type": "boolean"
        },
        "expired": {
          "default": false,
          "type": "boolean"
        }
      },
      "required": [
        "linkedBy",
        "id",
        "name",
        "configPath",
        "branch",
        "publishOnMerge",
        "publishPreviews",
        "prComments",
        "expired"
      ],
      "additionalProperties": false
    },
    "nanoid": {
      "type": "string",
      "minLength": 5
    },
    "slug": {
      "type": "string",
      "minLength": 3,
      "maxLength": 60,
      "pattern": "^[a-z](?:[a-z0-9-]*[a-z0-9])?$"
    },
    "timestamp": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  }
}