typst4ei 2.0.1

The Typst4EI building and serving tool/cli
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Config",
  "type": "object",
  "properties": {
    "allowed-licenses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/License"
      }
    },
    "auth": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/Source"
        }
      }
    },
    "site": {
      "$ref": "#/$defs/Site"
    }
  },
  "additionalProperties": false,
  "required": [
    "site",
    "auth",
    "allowed-licenses"
  ],
  "$defs": {
    "License": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": false,
      "required": [
        "name",
        "url"
      ]
    },
    "Provider": {
      "type": "string",
      "enum": [
        "Codeberg",
        "Gitea",
        "File"
      ]
    },
    "Site": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "name",
        "description"
      ]
    },
    "Source": {
      "type": "object",
      "properties": {
        "custom-display-url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "custom-fetch-url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "hide-urls": {
          "type": "boolean",
          "default": false
        },
        "owner": {
          "type": "string"
        },
        "provider": {
          "$ref": "#/$defs/Provider"
        },
        "repo": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "provider",
        "owner",
        "repo"
      ]
    }
  }
}