{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Service",
  "title": "Service",
  "type": "object",
  "description": "A service object (protocol/port combination)",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Service identifier"
    },
    "name": {
      "type": "string",
      "description": "Service name"
    },
    "protocol": {
      "type": "string",
      "description": "Protocol (TCP, UDP, ICMP)"
    },
    "port": {
      "type": "string",
      "description": "Port number or range"
    }
  }
}