{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/damdafa-com/json-schema/damdafa-com-google-font-schema.json",
  "title": "GoogleFont",
  "description": "Representation of a Google Font from the API.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/damdafa-com-fonts-api-openapi.yml#/components/schemas/GoogleFont",
  "properties": {
    "family": {
      "type": "string",
      "title": "Family"
    },
    "variants": {
      "items": {
        "$ref": "#/$defs/FontVariantKey"
      },
      "type": "array",
      "title": "Variants"
    },
    "subsets": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Subsets"
    },
    "version": {
      "type": "string",
      "title": "Version"
    },
    "lastModified": {
      "type": "string",
      "title": "Lastmodified"
    },
    "files": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Files",
      "description": "Mapping of variant to download URL"
    },
    "category": {
      "type": "string",
      "title": "Category"
    },
    "kind": {
      "type": "string",
      "title": "Kind",
      "default": "webfonts#webfont"
    },
    "menu": {
      "type": "string",
      "title": "Menu",
      "description": "Download URL for regular variant ttf (used for menu/preview)",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "family",
    "variants",
    "subsets",
    "version",
    "lastModified",
    "files",
    "category"
  ],
  "$defs": {
    "FontVariantKey": {
      "type": "string",
      "enum": [
        "regular",
        "italic",
        "100",
        "200",
        "300",
        "400",
        "500",
        "600",
        "700",
        "800",
        "900",
        "100italic",
        "200italic",
        "300italic",
        "400italic",
        "500italic",
        "600italic",
        "700italic",
        "800italic",
        "900italic"
      ],
      "title": "FontVariantKey",
      "description": "Google Fonts variant keys.\n\nMatches keys used in Google Fonts API `files` map and values used by the client."
    }
  }
}