@hrefcl/apidoc - v4.0.5
    Preparing search index...
    • Parser for topic tags - defines MQTT topic path with placeholders

      This parser handles the topic tag that defines MQTT topic paths. It extracts:

      • Complete topic path with placeholders
      • Validates topic format

      Parameters

      • content: string

        Raw content from the topic tag

      Returns { topic: string }

      Parsed topic information or null if parsing fails

      // Input: "v1/{tenant}/devices/{deviceId}/telemetry"
      // Output: { topic: "v1/{tenant}/devices/{deviceId}/telemetry" }
      // Input: "sensors/temperature"
      // Output: { topic: "sensors/temperature" }
      // Input: "devices/+/status"
      // Output: { topic: "devices/+/status" }

      4.1.0