{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/presentofai-com/json-schema/presentofai-com-facet-list-schema.json",
  "title": "FacetList",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/presentofai-com-openapi.json#/components/schemas/FacetList",
  "type": "object",
  "required": [
    "source",
    "attribution",
    "license",
    "url",
    "count"
  ],
  "properties": {
    "source": {
      "type": "string",
      "const": "Present of AI"
    },
    "attribution": {
      "type": "string",
      "description": "Data from presentofai.com, CC BY 4.0, link back to the page you use"
    },
    "license": {
      "type": "string",
      "const": "CC BY 4.0"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Canonical presentofai.com page for this response. Link back to it."
    },
    "count": {
      "type": "integer"
    },
    "sectors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Facet"
      }
    },
    "countries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Facet"
      }
    }
  },
  "$defs": {
    "Facet": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "companies": {
          "type": "integer"
        },
        "spotlights": {
          "type": "integer"
        },
        "page_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        }
      }
    }
  }
}