{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://simorg.art/.well-known/agent-docs.schema.json",
  "title": "Simorg agent documentation corpus",
  "type": "object",
  "required": [
    "schema_version",
    "name",
    "generated_at",
    "documents",
    "document_count"
  ],
  "properties": {
    "schema_version": {
      "type": "string"
    },
    "schema_url": {
      "type": "string",
      "format": "uri"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "homepage": {
      "type": "string",
      "format": "uri"
    },
    "documentation_base_url": {
      "type": "string",
      "format": "uri"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "doc_version": {
      "type": "string"
    },
    "preferred_entry_points": {
      "type": "object"
    },
    "usage": {
      "type": "object"
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "label",
          "document_count"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "document_count": {
            "type": "integer"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "document_count": {
      "type": "integer",
      "minimum": 0
    },
    "documents": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "title",
          "category",
          "url",
          "markdown_url",
          "content"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "category_label": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdown_url": {
            "type": "string",
            "format": "uri"
          },
          "content_type": {
            "type": "string"
          },
          "content": {
            "type": "string",
            "description": "Full markdown body of the document"
          }
        }
      }
    }
  }
}
