{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-wiki-v2-schema.json",
  "title": "WikiV2",
  "description": "An Azure DevOps wiki",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-wikis-api-openapi.yml#/components/schemas/WikiV2",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique GUID identifier of the wiki"
    },
    "name": {
      "type": "string",
      "description": "Display name of the wiki"
    },
    "type": {
      "type": "string",
      "description": "Type of wiki",
      "enum": [
        "projectWiki",
        "codeWiki"
      ]
    },
    "projectId": {
      "type": "string",
      "format": "uuid",
      "description": "ID of the project this wiki belongs to"
    },
    "repositoryId": {
      "type": "string",
      "format": "uuid",
      "description": "ID of the backing Git repository"
    },
    "mappedPath": {
      "type": "string",
      "description": "Root folder path in the repository (for code wikis)"
    },
    "versions": {
      "type": "array",
      "description": "Branches or versions available for this wiki",
      "items": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "Branch name"
          }
        }
      }
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL to access this wiki via the REST API"
    },
    "remoteUrl": {
      "type": "string",
      "format": "uri",
      "description": "Clone URL for the backing repository"
    },
    "_links": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}