{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://openwebcomics.comicopia.app/schema/info.schema.json",
  "title": "RegistryInfo",
  "description": "Response from GET /openwebcomics/api/v1/info. Identifies a registry and its API version.",
  "type": "object",
  "required": ["version", "name"],
  "properties": {
    "version": {
      "type": "string",
      "description": "Registry content version. Must be an increasing value — the recommended format is yyyyMMddhhmmss, but any string that increases monotonically (e.g. a Unix epoch, a build number) is valid. Clients treat the cache as stale whenever this value differs from the last seen value.",
      "example": "20260502120000"
    },
    "name": {
      "type": "string",
      "description": "Human-readable name for this registry.",
      "example": "Comicopia"
    },
    "description": {
      "type": ["string", "null"],
      "description": "Optional description of the registry.",
      "example": "The official Comicopia comic registry."
    },
    "logo_url": {
      "type": ["string", "null"],
      "format": "uri",
      "description": "URL of the registry logo image.",
      "example": "https://comicopia.app/logo.png"
    }
  },
  "additionalProperties": false
}
