{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://aicontext.gr/specification/schemas/discovery.schema.json",
  "title": "AI Context Discovery",
  "type": "object",
  "required": ["format", "specification_version", "context"],
  "additionalProperties": true,
  "properties": {
    "format": {
      "const": "AI Context Discovery"
    },
    "specification": {
      "type": "string",
      "format": "uri"
    },
    "specification_version": {
      "type": "string"
    },
    "context": {
      "type": "string",
      "format": "uri",
      "description": "Canonical URL of the full AI Context JSON document"
    },
    "updated": {
      "type": "string"
    },
    "openapi": {
      "type": "string",
      "format": "uri",
      "description": "Optional URL of the publisher's public read API OpenAPI contract"
    },
    "json_schema": {
      "type": "string",
      "format": "uri",
      "description": "Optional URL of the JSON Schema for the canonical AI Context document"
    },
    "public_api_base": {
      "type": "string",
      "format": "uri",
      "description": "Optional base URL for optional /v1 resource views"
    }
  }
}
