{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateRepoRequest",
  "title": "CreateRepoRequest",
  "type": "object",
  "required": [
    "name",
    "type"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Repository name",
      "example": "my-awesome-model"
    },
    "type": {
      "type": "string",
      "description": "Repository type",
      "enum": [
        "model",
        "dataset",
        "space"
      ],
      "example": "model"
    },
    "organization": {
      "type": "string",
      "description": "Organization to create the repo under",
      "example": "example_value"
    },
    "private": {
      "type": "boolean",
      "description": "Whether the repo should be private",
      "default": false,
      "example": true
    },
    "sdk": {
      "type": "string",
      "description": "SDK for Spaces (required when type is space)",
      "enum": [
        "gradio",
        "streamlit",
        "docker",
        "static"
      ],
      "example": "gradio"
    }
  }
}