{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "PackageToml",
  "type": "object",
  "properties": {
    "package": {
      "$ref": "#/$defs/PackageInfo"
    }
  },
  "additionalProperties": false,
  "required": [
    "package"
  ],
  "$defs": {
    "PackageInfo": {
      "description": "`package.toml`: who made it and what it is.",
      "type": "object",
      "properties": {
        "author": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "id": {
          "description": "Lowercase letters, digits, `-` and `_`; installing a package with the same id replaces it.",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "requires": {
          "description": "Routers it needs beyond what its scenarios use (an addon made for one game).",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "version": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "version"
      ]
    }
  }
}
