Parser for payloadSchema tags - defines JSON Schema for MQTT payload validation
This parser handles the payloadSchema tag that defines JSON Schema for validating MQTT message payloads. It supports:
Raw content from the payloadSchema tag
Parsed schema information or null if parsing fails
// Input: 'inline\n{"type": "object", "properties": {"temp": {"type": "number"}}}'// Output: { type: "inline", schema: {...}, isValid: true } Copy
// Input: 'inline\n{"type": "object", "properties": {"temp": {"type": "number"}}}'// Output: { type: "inline", schema: {...}, isValid: true }
// Input: "file schemas/telemetry.json"// Output: { type: "file", schema: "schemas/telemetry.json", isValid: true } Copy
// Input: "file schemas/telemetry.json"// Output: { type: "file", schema: "schemas/telemetry.json", isValid: true }
4.1.0
Parser for payloadSchema tags - defines JSON Schema for MQTT payload validation
This parser handles the payloadSchema tag that defines JSON Schema for validating MQTT message payloads. It supports: