{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "additionalProperties": false,
  "id": "https://json.schemastore.org/pterodactyl.json",
  "properties": {
    "_comment": {
      "type": "string",
      "description": "A comment to ignore"
    },
    "meta": {
      "type": "object"
    },
    "exported_at": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "description": "The egg's name"
    },
    "author": {
      "type": "string",
      "description": "The egg's author"
    },
    "description": {
      "type": "string",
      "description": "The egg's description"
    },
    "features": {
      "type": "array",
      "description": "A list of features to use",
      "items": {
        "type": "string"
      }
    },
    "docker_images": {
      "type": "object",
      "description": "Object containing key-value pairs of a pretty Docker image name and its URL"
    },
    "file_denylist": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "startup": {
      "type": "string",
      "description": "Command to run on startup",
      "x-intellij-language-injection": "Shell Script"
    },
    "config": {
      "type": "object",
      "description": "Object to store configuration"
    },
    "scripts": {
      "type": "object",
      "description": "A list of possible scripts to execute",
      "patternProperties": {
        "^[_a-zA-Z][a-zA-Z0-9_-]*$": {
          "type": "object",
          "properties": {
            "container": {
              "type": "string",
              "description": "Container to run script in"
            },
            "entrypoint": {
              "type": "string",
              "description": "Entrypoint of script"
            }
          }
        }
      }
    },
    "variables": {
      "type": "array",
      "description": "Object of variables that can be used to change the startup command",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the variable."
          },
          "description": {
            "type": "string",
            "description": "Description of the variable."
          },
          "env_variable": {
            "type": "string",
            "description": "The environment variable that corresponds to this variable. This can be referenced in the startup command."
          },
          "default_value": {
            "type": "string",
            "description": "Default value of the variable."
          },
          "user_viewable": {
            "type": "boolean",
            "description": "Setting to true allows a user to view the field on the front-end, as well as the assigned value of that variable. They will be able to see it replaced in their startup command."
          },
          "user_editable": {
            "type": "boolean",
            "description": "Set to true if the variable is editable by the user"
          },
          "rules": {
            "type": "string",
            "description": "Rules to validate the variable against."
          },
          "field_type": {
            "type": "string"
          }
        }
      }
    }
  },
  "type": "object"
}
