{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/github/github-funding/latest.json",
  "title": "GitHub Funding",
  "description": "You can add a sponsor button in your repository to increase the visibility of funding options for your open source project.",
  "x-lintel": {
    "source": "https://www.schemastore.org/github-funding.json",
    "sourceSha256": "90d83f41c25a0029653a7ba64080aa6f3973527eed533f18f5b932a425bc802b",
    "fileMatch": [
      "**/.github/FUNDING.yml",
      "**/.github/FUNDING.yaml",
      "**/.github/funding.yml",
      "**/.github/funding.yaml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "community_bridge": {
      "title": "LFX Mentorship (formerly CommunityBridge)",
      "description": "Project name on CommunityBridge.",
      "type": "string",
      "minLength": 1
    },
    "github": {
      "title": "GitHub Sponsors",
      "description": "You can add one organization and up to four sponsored developers.",
      "oneOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "array",
          "minItems": 1,
          "maxItems": 5,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      ]
    },
    "issuehunt": {
      "title": "IssueHunt",
      "description": "Username on IssueHunt.",
      "type": "string",
      "minLength": 1
    },
    "ko_fi": {
      "title": "Ko-fi",
      "description": "Username on Ko-fi.",
      "type": "string",
      "minLength": 1
    },
    "liberapay": {
      "title": "Liberapay",
      "description": "Username on Liberapay.",
      "type": "string",
      "minLength": 1
    },
    "open_collective": {
      "title": "Open Collective",
      "description": "Username on Open Collective.",
      "type": "string",
      "minLength": 1
    },
    "patreon": {
      "title": "Patreon",
      "description": "Username on Patreon.",
      "type": "string",
      "minLength": 1
    },
    "tidelift": {
      "title": "Tidelift",
      "description": "Platform and package on Tidelift, following the format `PLATFORM-NAME/PACKAGE-NAME`.",
      "type": "string",
      "pattern": "^(npm|pypi|rubygems|maven|packagist|nuget)/.+$"
    },
    "polar": {
      "title": "Polar",
      "description": "Username on Polar.",
      "type": "string",
      "minLength": 1
    },
    "buy_me_a_coffee": {
      "title": "Buy Me a Coffee",
      "description": "Username on Buy Me a Coffee.",
      "type": "string",
      "minLength": 1
    },
    "thanks_dev": {
      "title": "thanks.dev",
      "description": "Maintainer profile on thanks.dev",
      "type": "string",
      "pattern": "^u/gh/.+$"
    },
    "custom": {
      "title": "Custom URL or URL's",
      "description": "Link or links where funding is accepted on external locations.",
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        {
          "type": "array",
          "minItems": 1,
          "maxItems": 4,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1,
            "format": "uri-reference"
          }
        }
      ]
    }
  },
  "$comment": "https://docs.github.com/en/github/administering-a-repository/displaying-a-sponsor-button-in-your-repository",
  "additionalProperties": false
}
