{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/saaskly-com/json-schema/saaskly-com-provider-schema.json",
  "title": "Provider",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/saaskly-com-openapi.json#/components/schemas/Provider",
  "type": "object",
  "required": [
    "id",
    "name",
    "slug",
    "category",
    "status"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "category": {
      "$ref": "#/$defs/CategorySlug"
    },
    "website": {
      "type": [
        "string",
        "null"
      ]
    },
    "shortDescription": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "$ref": "#/$defs/RichText"
    },
    "overallRating": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 5,
      "description": "Editorial score"
    },
    "pros": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          }
        }
      }
    },
    "cons": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          }
        }
      }
    },
    "pricingTiers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PricingTier"
      },
      "description": "First tier = entry plan"
    },
    "commercial": {
      "$ref": "#/$defs/Commercial"
    },
    "sponsored": {
      "type": "boolean",
      "description": "Disclosed marketing partner; score unaffected"
    },
    "sponsorName": {
      "type": [
        "string",
        "null"
      ]
    },
    "sponsorDisclosure": {
      "type": [
        "string",
        "null"
      ]
    },
    "featured": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "const": "published"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "CategorySlug": {
      "type": "string",
      "enum": [
        "cloud-management",
        "email",
        "voip",
        "seo-geo-aeo",
        "social-media-management",
        "domain-names",
        "vpn",
        "crm",
        "content-creation",
        "vps-hosting",
        "password-managers",
        "accounting-software",
        "antivirus",
        "cms-website-builders",
        "gpu-compute"
      ]
    },
    "Commercial": {
      "type": "object",
      "properties": {
        "minSeats": {
          "type": [
            "integer",
            "null"
          ]
        },
        "minContractMonths": {
          "type": [
            "integer",
            "null"
          ],
          "description": "0 = month-to-month at the listed price"
        },
        "monthlyTermPremiumPercent": {
          "type": [
            "number",
            "null"
          ]
        },
        "salesModel": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "direct",
            "partner-only",
            null
          ]
        },
        "trustpilotScore": {
          "type": [
            "number",
            "null"
          ]
        },
        "trustpilotReviews": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    },
    "PricingTier": {
      "type": "object",
      "properties": {
        "tierName": {
          "type": "string"
        },
        "unit": {
          "type": [
            "string",
            "null"
          ],
          "description": "What one price buys (\"user\", \"device\", \"1,000 emails\"); \"plan\" = a flat price; null = not recorded"
        },
        "price": {
          "type": [
            "number",
            "null"
          ],
          "description": "Price at the committed (usually annual) term"
        },
        "priceMonthlyTerm": {
          "type": [
            "number",
            "null"
          ],
          "description": "Month-to-month price; null = vendor does not publish one"
        },
        "currency": {
          "type": "string",
          "enum": [
            "usd",
            "eur",
            "gbp"
          ]
        },
        "billingPeriod": {
          "type": "string",
          "enum": [
            "monthly",
            "annual",
            "one-time",
            "usage"
          ],
          "description": "The period the price covers; usage = per unit used, no period"
        },
        "seats": {
          "type": [
            "integer",
            "null"
          ]
        },
        "features": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "feature": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "RichText": {
      "type": "object",
      "description": "Lexical editor JSON. Prefer the `.md` mirror for prose."
    }
  }
}