{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runonflux-com/json-schema/runonflux-com-appspecification-schema.json",
  "title": "appspecification",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/runonflux-com-openapi.yaml#/components/schemas/appspecification",
  "type": "object",
  "properties": {
    "version": {
      "type": "integer",
      "description": "Version of message which is 7"
    },
    "name": {
      "type": "string",
      "description": "Name of app"
    },
    "description": {
      "type": "string",
      "description": "Description of app"
    },
    "owner": {
      "type": "string",
      "description": "Your FluxID"
    },
    "compose": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "component specification",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of app"
          },
          "description": {
            "type": "string",
            "description": "Description of component"
          },
          "repotag": {
            "type": "string",
            "description": "Repotag of docker image in this format `namespace/repository:tag`"
          },
          "ports": {
            "type": "array",
            "items": {
              "type": "integer",
              "description": "Ports list"
            }
          },
          "domains": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Domain list"
            }
          },
          "enviromentParameters": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Environment variables"
            }
          },
          "commands": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Execution list"
            }
          },
          "containerPorts": {
            "type": "array",
            "items": {
              "type": "integer",
              "description": "Container ports"
            }
          },
          "containerData": {
            "type": "string",
            "description": "Directory the data is stored and what dir is tied to the system folder"
          },
          "cpu": {
            "type": "number",
            "description": "CPU amount requesting"
          },
          "ram": {
            "type": "integer",
            "description": "Ram amount requesting in MB"
          },
          "hdd": {
            "type": "integer",
            "description": "Storage space requesting in GB"
          },
          "tiered": {
            "type": "boolean",
            "description": "If set to true you will also need following key/value pairs to provide tiered info. If false do not add the following key/value pairs."
          },
          "cpubasic": {
            "type": "number",
            "description": "CPU amount"
          },
          "cpusuper": {
            "type": "number",
            "description": "CPU amount"
          },
          "cpubamf": {
            "type": "number",
            "description": "CPU amount"
          },
          "rambasic": {
            "type": "integer",
            "description": "Ram amount in MB"
          },
          "ramsuper": {
            "type": "integer",
            "description": "Ram amount in MB"
          },
          "rambamf": {
            "type": "integer",
            "description": "Ram amount in MB"
          },
          "hddbasic": {
            "type": "integer",
            "description": "Storage space in GB"
          },
          "hddsuper": {
            "type": "integer",
            "description": "Storage space in GB"
          },
          "hddbamf": {
            "type": "integer",
            "description": "Storage space in GB"
          },
          "secrets": {
            "type": "string",
            "description": "Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only."
          },
          "repoauth": {
            "type": "string",
            "description": "Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected Enterprise Nodes only."
          }
        }
      }
    },
    "instances": {
      "type": "integer",
      "description": "Instances number"
    },
    "contacts": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Mail list"
      }
    },
    "geolocation": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Geolocation symbols"
      }
    },
    "expire": {
      "type": "integer",
      "description": "Number of blocks after apps expire"
    },
    "nodes": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Enterprise Nodes IP list"
      }
    },
    "staticip": {
      "type": "boolean",
      "description": "If set to true apps will be installed of nodes with static IP only."
    }
  }
}