{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ProjectBody",
  "title": "ProjectBody",
  "type": "object",
  "description": "The request body for creating a new project.",
  "required": [
    "name",
    "key"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The human-readable name of the project."
    },
    "key": {
      "type": "string",
      "description": "The project key.",
      "pattern": "^[a-z0-9]([a-z0-9-])*$"
    },
    "tags": {
      "type": "array",
      "description": "Tags to apply to the project.",
      "items": {
        "type": "string"
      }
    },
    "environments": {
      "type": "array",
      "description": "Initial environments to create with the project.",
      "items": {
        "$ref": "#/components/schemas/EnvironmentBody"
      }
    }
  }
}