{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agentpaywire.com/schemas/lightning-releases.schema.json",
  "title": "Latest stable Lightning releases",
  "description": "One stable row each for LND, Core Lightning, LDK, and Eclair. Release candidates are excluded.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "generated_at",
    "disclaimer",
    "description",
    "count",
    "entries",
    "selection_rule"
  ],
  "properties": {
    "schema_version": {
      "const": "1"
    },
    "generated_at": {
      "type": "string"
    },
    "disclaimer": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "text",
        "url"
      ],
      "properties": {
        "text": {
          "const": "Not investment advice."
        },
        "url": {
          "const": "https://agentpaywire.com/disclaimer.json"
        }
      }
    },
    "$schema": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "selection_rule": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "markdown_url": {
      "type": "string"
    },
    "csv_url": {
      "type": "string"
    },
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "repo",
          "version",
          "tag",
          "release_date",
          "security_release",
          "security_release_basis",
          "prerelease",
          "github_release_object",
          "release_url",
          "source",
          "verified_at",
          "excluded",
          "notes"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "tag": {
            "type": "string"
          },
          "release_date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "security_release": {
            "type": "boolean"
          },
          "security_release_basis": {
            "type": "string"
          },
          "prerelease": {
            "type": "boolean"
          },
          "github_release_object": {
            "type": "boolean"
          },
          "release_url": {
            "type": "string",
            "format": "uri"
          },
          "source": {
            "type": "string",
            "format": "uri"
          },
          "verified_at": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "excluded": {
            "type": "array"
          },
          "notes": {
            "type": "string"
          }
        }
      }
    }
  }
}
