{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mzizi-dev/json-schema/mzizi-dev-api-discovery-schema.json",
  "title": "ApiDiscovery",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mzizi-dev-openapi.yml#/components/schemas/ApiDiscovery",
  "type": "object",
  "required": [
    "@context",
    "@type",
    "name",
    "version",
    "description",
    "homepage",
    "resources"
  ],
  "properties": {
    "$schema": {
      "type": "string"
    },
    "@context": {
      "type": "string",
      "const": "https://schema.org"
    },
    "@type": {
      "type": "string",
      "const": "WebAPI"
    },
    "name": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "homepage": {
      "type": "string",
      "format": "uri"
    },
    "data": {
      "type": "object",
      "description": "Where the data comes from. There is no database; the files are the data layer.",
      "properties": {
        "source": {
          "type": "string",
          "const": "files"
        },
        "repository": {
          "type": "string",
          "format": "uri"
        },
        "components": {
          "type": "integer",
          "description": "Live registry count."
        }
      }
    },
    "resources": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "required": [
          "href",
          "description"
        ],
        "properties": {
          "href": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      }
    }
  }
}