{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://benchlist.ai/schemas/service.schema.json",
  "title": "Service",
  "type": "object",
  "required": ["id", "name", "vendor", "category", "oneliner", "homepage", "launchedAt"],
  "properties": {
    "id": { "type": "string", "pattern": "^[a-z0-9-]+$" },
    "name": { "type": "string", "minLength": 1, "maxLength": 64 },
    "vendor": { "type": "string" },
    "category": { "type": "string" },
    "subcategories": { "type": "array", "items": { "type": "string" } },
    "oneliner": { "type": "string", "maxLength": 140 },
    "description": { "type": "string" },
    "logoInitials": { "type": "string", "maxLength": 4 },
    "hue": { "type": "integer", "minimum": 0, "maximum": 360 },
    "homepage": { "type": "string", "format": "uri" },
    "docs": { "type": "string", "format": "uri" },
    "github": { "type": "string" },
    "twitter": { "type": "string" },
    "license": { "type": "string", "enum": ["MIT", "Apache-2.0", "BSL", "SSPL", "AGPL-3.0", "ELv2", "Commercial", "Proprietary"] },
    "pricing": {
      "type": "object",
      "properties": {
        "free": { "type": "boolean" },
        "starter": { "type": "string" },
        "pro": { "type": "string" },
        "enterprise": { "type": "string" },
        "note": { "type": "string" }
      }
    },
    "openSource": { "type": "boolean" },
    "selfHostable": { "type": "boolean" },
    "regions": { "type": "array", "items": { "type": "string" } },
    "compliance": {
      "type": "array",
      "items": { "type": "string", "enum": ["SOC2-I", "SOC2-II", "HIPAA", "ISO27001", "GDPR", "PCI-DSS", "FedRAMP", "none"] }
    },
    "launchedAt": { "type": "string", "format": "date" },
    "lastVerifiedAt": { "type": "string", "format": "date-time" },
    "tags": { "type": "array", "items": { "type": "string" } },
    "featured": { "type": "boolean" },
    "publisher": { "type": "string" }
  },
  "additionalProperties": false
}
