Use the -f flag to read OCPP messages from a file instead of passing them as a command-line
argument. Each line must be a single, complete OCPP JSON string; blank lines are ignored.
chargeflow validate -f messages.txtExample messages.txt:
[2, "1", "BootNotification", {"chargePointVendor": "TestVendor", "chargePointModel": "TestModel"}]
[2, "2", "Heartbeat", {}]
[3, "1", {"status": "Accepted", "currentTime": "2024-01-01T00:00:00Z", "interval": 300}]
Note
Response messages (type 3) require the --response-type flag so ChargeFlow knows which schema
to validate against, e.g. --response-type BootNotificationResponse.
Use -o to write the validation report to a file instead of stdout. Supported extensions are
.json, .csv, and .txt.
chargeflow validate -f messages.txt -o report.json
chargeflow validate -f messages.txt -o report.csv
chargeflow validate -f messages.txt -o report.txtThe default version is 1.6. Use --version (-v) to change it.
chargeflow --version 2.0.1 validate -f messages.txt -o report.json