{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/azure-container-instances/refs/heads/main/json-schema/azure-container-instances-container-port-schema.json",
  "title": "ContainerPort",
  "description": "The port exposed on the container instance.",
  "type": "object",
  "properties": {
    "port": {
      "description": "The port number exposed within the container group.",
      "format": "int32",
      "type": "integer"
    },
    "protocol": {
      "description": "The protocol associated with the port.",
      "enum": [
        "TCP",
        "UDP"
      ],
      "type": "string",
      "x-ms-enum": {
        "modelAsString": true,
        "name": "ContainerNetworkProtocol"
      }
    }
  },
  "required": [
    "port"
  ]
}