{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-app-manifest-schema.json",
  "title": "AppManifest",
  "description": "Application information and requirements provided by the\nApplication Provider\n",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-application-api-openapi.yml#/components/schemas/AppManifest",
  "properties": {
    "appId": {
      "$ref": "#/$defs/AppId"
    },
    "name": {
      "type": "string",
      "pattern": "^[A-Za-z][A-Za-z0-9_]{1,63}$",
      "description": "Name of the application."
    },
    "appProvider": {
      "$ref": "#/$defs/AppProvider"
    },
    "version": {
      "type": "string",
      "description": "Application version information"
    },
    "packageType": {
      "description": "Format of the application image package",
      "type": "string",
      "enum": [
        "QCOW2",
        "OVA",
        "CONTAINER",
        "HELM"
      ]
    },
    "operatingSystem": {
      "$ref": "#/$defs/OperatingSystem"
    },
    "appRepo": {
      "description": "Repository where Application Provider stores the application image\n",
      "type": "object",
      "required": [
        "type",
        "imagePath"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "PRIVATEREPO",
            "PUBLICREPO"
          ],
          "description": "Application repository and image URI information.\nPUBLICREPO is used of public urls like github, helm repo etc.\nPRIVATEREPO  is used for private repo managed by the application\ndeveloper. Private repo can be accessed by using the app\ndeveloper provided userName and password. Password is\nrecommended to be the personal access token created by developer\ne.g. in Github repo.\n"
        },
        "imagePath": {
          "$ref": "#/$defs/Uri"
        },
        "userName": {
          "type": "string",
          "description": "Username to acces the Helm chart, docker-compose\nfile or VM image repository\n"
        },
        "credentials": {
          "type": "string",
          "maxLength": 128,
          "description": "Password or personal access token created by\ndeveloper to acces the app repository. API users can generate\na personal access token e.g. docker clients to use them as\npassword.\n"
        },
        "authType": {
          "type": "string",
          "enum": [
            "DOCKER",
            "HTTP_BASIC",
            "HTTP_BEARER",
            "NONE"
          ],
          "description": "The credentials can also be formatted as a Basic\nauth or Bearer auth in HTTP \"Authorization\" header.\n"
        },
        "checksum": {
          "type": "string",
          "description": "MD5 checksum for VM and file-based images, sha256\ndigest for containers\n"
        }
      }
    },
    "requiredResources": {
      "$ref": "#/$defs/RequiredResources"
    },
    "componentSpec": {
      "description": "Information defined in \"appRepo\" point to the application\ndescriptor e.g. Helm chart, docker-compose yaml file etc.\nThe descriptor may contain one or more containers and their\nassociated meta-data. A component refers to additional details\nabout these containers to expose the instances of the containers\nto external client applications. App provider can define one or\nmore components (via the associated network port) in componentSpec\ncorresponding to the containers in helm charts or docker-compose\nyaml file as part of app descriptors.\n",
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "componentName",
          "networkInterfaces"
        ],
        "properties": {
          "componentName": {
            "type": "string",
            "description": "Component name must be unique with an application"
          },
          "networkInterfaces": {
            "description": "Each application component exposes some ports\neither for external users or for inter component\ncommunication.\nApplication provider is required to specify which ports are\nto be exposed and the type of traffic that will flow through\nthese ports.The underlying platform may assign a dynamic port\nagainst the \"extPort\" that the application clients will use\nto connect with edge application instance.\n",
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "interfaceId",
                "protocol",
                "port",
                "visibilityType"
              ],
              "properties": {
                "interfaceId": {
                  "type": "string",
                  "pattern": "^[A-Za-z][A-Za-z0-9_]{3,31}$",
                  "description": "Each Port and corresponding traffic protocol\nexposed by the component is identified by a name.\nApplication client on user device requires this to\nuniquley idenify the interface.\n"
                },
                "protocol": {
                  "type": "string",
                  "enum": [
                    "TCP",
                    "UDP",
                    "ANY"
                  ],
                  "description": "Defines the IP transport communication\nprotocol i.e., TCP, UDP or ANY\n"
                },
                "port": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 1,
                  "maximum": 65535,
                  "description": "Port number exposed by the component.\nEdge Cloud Provider may generate a dynamic port\ntowards the component instance which forwards\nexternal traffic to the component port.\n"
                },
                "visibilityType": {
                  "description": "Defines whether the interface is exposed\nto outer world or not i.e., external, or internal.\nIf this is set to \"external\", then it is  exposed\nto external applications otherwise it is exposed\ninternally to edge application components within\nedge cloud. When exposed to external world,\nan external dynamic port is assigned for UC traffic\nand mapped to the extPort\n",
                  "type": "string",
                  "enum": [
                    "VISIBILITY_EXTERNAL",
                    "VISIBILITY_INTERNAL"
                  ]
                }
              }
            },
            "minItems": 1
          }
        }
      }
    }
  },
  "required": [
    "name",
    "version",
    "appProvider",
    "packageType",
    "appRepo",
    "requiredResources",
    "componentSpec"
  ],
  "$defs": {
    "AdditionalStorage": {
      "description": "Additional storage for the application.",
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "storageSize",
          "mountPoint"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of additional storage resource."
          },
          "storageSize": {
            "type": "string",
            "description": "Additional persistent volume for the application.",
            "pattern": "^\\d+(GB|MB)$"
          },
          "mountPoint": {
            "type": "string",
            "description": "Location of additional storage resource."
          }
        }
      }
    },
    "AppId": {
      "type": "string",
      "format": "uuid",
      "description": "A globally unique identifier associated with the application.\nEdge Cloud Platform generates this identifier when the\nApplication is submitted.\n"
    },
    "AppProvider": {
      "type": "string",
      "pattern": "^[A-Za-z][A-Za-z0-9_]{7,63}$",
      "description": "Human readable name of the Application Provider."
    },
    "ContainerResources": {
      "description": "Container Infrastructure Definition",
      "type": "object",
      "required": [
        "infraKind",
        "numCPU",
        "memory"
      ],
      "properties": {
        "infraKind": {
          "description": "Type of infrastructure for the application.",
          "type": "string",
          "enum": [
            "container"
          ]
        },
        "numCPU": {
          "$ref": "#/$defs/Vcpu"
        },
        "memory": {
          "type": "integer",
          "description": "Memory in mega bytes"
        },
        "storage": {
          "$ref": "#/$defs/AdditionalStorage"
        },
        "gpu": {
          "$ref": "#/$defs/GpuInfo"
        }
      }
    },
    "DockerComposeResources": {
      "description": "Definition of Docker Compose Infrastructure",
      "type": "object",
      "required": [
        "infraKind",
        "numCPU",
        "memory"
      ],
      "properties": {
        "infraKind": {
          "description": "Type of infrastructure for the application.",
          "type": "string",
          "enum": [
            "dockerCompose"
          ]
        },
        "numCPU": {
          "type": "integer",
          "description": "Number of vcpus in whole (i.e 1)\n"
        },
        "memory": {
          "type": "integer",
          "description": "Memory in mega bytes"
        },
        "storage": {
          "$ref": "#/$defs/AdditionalStorage"
        },
        "gpu": {
          "$ref": "#/$defs/GpuInfo"
        }
      }
    },
    "GpuInfo": {
      "type": "object",
      "description": "Information about the supported GPUs",
      "required": [
        "gpuMemory",
        "numGPU"
      ],
      "properties": {
        "gpuMemory": {
          "type": "integer",
          "description": "GPU memory in mega bytes"
        },
        "numGPU": {
          "type": "integer",
          "description": "Number of GPUs"
        }
      }
    },
    "K8sAddons": {
      "description": "Addons for the Kubernetes cluster.\nAdditional addons should be defined in application the helm chart\n(Service Mesh, Serverless, AI).\n",
      "type": "object",
      "properties": {
        "monitoring": {
          "type": "boolean",
          "default": false,
          "description": "Enable monitoring for Kubernetes cluster."
        },
        "ingress": {
          "type": "boolean",
          "default": false,
          "description": "Enable ingress for Kubernetes cluster."
        }
      }
    },
    "K8sNetworking": {
      "description": "Kubernetes networking definition\n",
      "type": "object",
      "properties": {
        "primaryNetwork": {
          "description": "Definition of Kubernetes primary Network",
          "type": "object",
          "properties": {
            "provider": {
              "description": "CNI provider name",
              "type": "string"
            },
            "version": {
              "description": "CNI provider version",
              "type": "string"
            }
          }
        },
        "additionalNetworks": {
          "description": "Additional Networks for the Kubernetes cluster.",
          "type": "array",
          "items": {
            "type": "object",
            "description": "Additional network interface definition",
            "properties": {
              "name": {
                "description": "Additional Network Name",
                "type": "string"
              },
              "interfaceType": {
                "description": "Type of additional Interface:\nnetdevice: (SR-IOV) A regular kernel network device in the\n           Network Namespace (netns) of the container\nvfio-pci: (SR-IOV) A PCI network interface directly mounted\n          in the container\ninterface: Additional interface to be used by cni plugins\n           such as macvlan, ipvlan\nNote: The use of SR-IOV interfaces automatically\nconfigure the required kernel parameters for the nodes.\n",
                "type": "string",
                "enum": [
                  "netdevice",
                  "vfio-pci",
                  "interface"
                ]
              }
            }
          }
        }
      }
    },
    "KubernetesResources": {
      "description": "Definition of Kubernetes Cluster Infrastructure.",
      "required": [
        "infraKind",
        "applicationResources",
        "isStandalone"
      ],
      "properties": {
        "infraKind": {
          "description": "Type of infrastructure for the application.",
          "type": "string",
          "enum": [
            "kubernetes"
          ]
        },
        "applicationResources": {
          "description": "Application resources define the resources pool required\nby the application to be executed in a Kubernetes clusters.\n",
          "type": "object",
          "properties": {
            "cpuPool": {
              "required": [
                "numCPU",
                "memory",
                "topology"
              ],
              "type": "object",
              "description": "CPU Pool refers to the amount of application' resources\nthat is executed in nodes with CPU only. That means the part\nof application that doesn't require GPU or other kind of\nacceleration.\nCPU pool is not mandatory when the application is executed\nexclusively in a GPU pool.\nA CPU pool is composed by CPU and memory.\n",
              "properties": {
                "numCPU": {
                  "description": "Total number of vcpus in whole (i.e 1) of CPU pool.\n",
                  "type": "integer"
                },
                "memory": {
                  "description": "Total memory in mega bytes of CPU pool.",
                  "type": "integer"
                },
                "topology": {
                  "type": "object",
                  "description": "CPU pool topology defines an application's CPU-based\narchitecture.\nWhen deploying for high availability or redundancy, it\nallows for clustering with a configurable number of nodes\nand minimum CPU/memory resource per Kubernetes node\nrequirements.\n",
                  "required": [
                    "minNumberOfNodes",
                    "minNodeCpu",
                    "minNodeMemory"
                  ],
                  "properties": {
                    "minNumberOfNodes": {
                      "description": "Minimum number of worker nodes required by the\napplication.\n",
                      "type": "integer"
                    },
                    "minNodeCpu": {
                      "description": "Minimum number of vcpus in whole (i.e 1) per cluster\nnode in CPU pool.\n",
                      "type": "integer"
                    },
                    "minNodeMemory": {
                      "description": "Minimum memory in mega bytes per cluster node in\nCPU pool.\n",
                      "type": "integer"
                    }
                  }
                }
              }
            },
            "gpuPool": {
              "required": [
                "numCPU",
                "memory",
                "gpuMemory",
                "topology"
              ],
              "type": "object",
              "description": "GPU Pool refers to the amount of resources of the application\nthat is executed in nodes with GPU.\nGPU Pool is not mandatory when the application is executed\nexclusively in a CPU pool.\nA GPU pool is composed by memory, CPU and GPU memory\n",
              "properties": {
                "numCPU": {
                  "description": "Total Number of vcpus in whole (i.e 1) of GPU pool.\n",
                  "type": "integer"
                },
                "memory": {
                  "description": "Total memory in mega bytes of GPU pool.",
                  "type": "integer"
                },
                "gpuMemory": {
                  "description": "Total GPU memory in giga bytes of GPU pool.",
                  "type": "integer"
                },
                "topology": {
                  "type": "object",
                  "description": "GPU pool topology defines an application's GPU-based\narchitecture.\nWhen deploying for high availability or redundancy, it\nallows for clustering with a configurable number of nodes\nand minimum CPU/memory/GPU memory resource per Kubernetes\nnode requirements.\n",
                  "required": [
                    "minNumberOfNodes",
                    "minNodeCpu",
                    "minNodeMemory",
                    "minNodeGpuMemory"
                  ],
                  "properties": {
                    "minNumberOfNodes": {
                      "description": "Minimum number of worker nodes with GPU required by\nthe application.\n",
                      "type": "integer"
                    },
                    "minNodeCpu": {
                      "description": "Minimum number of vcpus in whole (i.e 1) per cluster\nnode in GPU pool.\n",
                      "type": "integer"
                    },
                    "minNodeMemory": {
                      "description": "Minimum memory in mega bytes per cluster node in\nGPU pool.\n",
                      "type": "integer"
                    },
                    "minNodeGpuMemory": {
                      "description": "Minimum memory in giga bytes per cluster node in GPU pool.",
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "isStandalone": {
          "description": "Define if the Kubernetes clusters can be reused by other\napplications.\n",
          "type": "boolean"
        },
        "version": {
          "type": "string",
          "description": "Minimum Kubernetes Version."
        },
        "additionalStorage": {
          "type": "string",
          "description": "Amount of persistent storage allocated to the Kubernetes PVC.\n",
          "pattern": "^\\d+(GB|MB)$"
        },
        "networking": {
          "$ref": "#/$defs/K8sNetworking"
        },
        "addons": {
          "$ref": "#/$defs/K8sAddons"
        }
      }
    },
    "OperatingSystem": {
      "description": "Information about the Operating System of the application image\n",
      "type": "object",
      "required": [
        "architecture",
        "family",
        "version",
        "license"
      ],
      "properties": {
        "architecture": {
          "description": "Type of the OS Architecture",
          "type": "string",
          "enum": [
            "x86_64",
            "x86"
          ]
        },
        "family": {
          "description": "Family to which OS belongs",
          "type": "string",
          "enum": [
            "RHEL",
            "UBUNTU",
            "COREOS",
            "WINDOWS",
            "OTHER"
          ]
        },
        "version": {
          "description": "Version of the OS",
          "type": "string",
          "enum": [
            "OS_VERSION_UBUNTU_2204_LTS",
            "OS_VERSION_RHEL_8",
            "OS_MS_WINDOWS_2022",
            "OTHER"
          ]
        },
        "license": {
          "description": "License needed to activate the OS",
          "type": "string",
          "enum": [
            "OS_LICENSE_TYPE_FREE",
            "OS_LICENSE_TYPE_ON_DEMAND",
            "OTHER"
          ]
        }
      }
    },
    "RequiredResources": {
      "description": "Fundamental hardware requirements to be provisioned by the\nApplication Provider.\n",
      "oneOf": [
        {
          "$ref": "#/$defs/KubernetesResources"
        },
        {
          "$ref": "#/$defs/VmResources"
        },
        {
          "$ref": "#/$defs/ContainerResources"
        },
        {
          "$ref": "#/$defs/DockerComposeResources"
        }
      ]
    },
    "Uri": {
      "type": "string",
      "description": "A Uniform Resource Identifier (URI) as per RFC 3986,\nidentifies the endpoint within an Edge Cloud Zone where the user\nequipment may connect to the selected application instance\n"
    },
    "Vcpu": {
      "type": "string",
      "pattern": "^\\d+((\\.\\d{1,3})|(m))?$",
      "description": "Number of vcpus in whole (i.e 1), decimal (i.e 0.500) up to\nmillivcpu, or millivcpu (i.e 500m) format.\n"
    },
    "VmResources": {
      "description": "Definition of Virtual Machine Infrastructure",
      "type": "object",
      "required": [
        "infraKind",
        "numCPU",
        "memory"
      ],
      "properties": {
        "infraKind": {
          "description": "Type of infrastructure for the application.",
          "type": "string",
          "enum": [
            "virtualMachine"
          ]
        },
        "numCPU": {
          "type": "integer",
          "description": "Number of vcpus in whole (i.e 1)\n"
        },
        "memory": {
          "type": "integer",
          "description": "Memory in mega bytes"
        },
        "additionalStorages": {
          "$ref": "#/$defs/AdditionalStorage"
        },
        "gpu": {
          "$ref": "#/$defs/GpuInfo"
        }
      }
    }
  }
}