Skip to content

Code Generator ‐ Validation report example

Zeus Castillo edited this page Mar 23, 2026 · 1 revision

Validation report

Below is an example of validation report content:

{
  "summary": {
    "errors": 3,
    "warnings": 2
  },
  "findings": [
    {
      "rule_id": "R-ACC-003",
      "severity": "ERROR",
      "path": "$.modules.mf.accessibles.target.datainfo",
      "message": "Invalid numeric range: min must be < max."
    },
    {
      "rule_id": "R-STAT-001",
      "severity": "ERROR",
      "path": "$.modules.heatswitch.accessibles.status.datainfo.members[0]",
      "message": "status.members[0] must be an enum definition."
    },
    {
      "rule_id": "R-ACC-005",
      "severity": "ERROR",
      "path": "$.modules.ts.accessibles._sensor.datainfo.maxchars",
      "message": "On PLC SEC node datainfo.maxchars is required (>0) when datainfo.type == 'string'."
    },	
    {
      "rule_id": "R-PLC-010",
      "severity": "WARNING",
      "path": "$.x-plc.tcp.server_port",
      "message": "The field x-plc.tcp.server_port is not configured. Manual PLC implementation will be required. Refer to generated tasks list."
    },
    {
      "rule_id": "R-PLC-040",
      "severity": "WARNING",
      "path": "$.modules.currentsp.x-plc.clear_errors.cmd_stmt",
      "message": "Missing PLC command statement for currentsp.clear_errors. The generator will clear SECoP ErrorReport only (by default). If you would like the command to perform an extra action, write it in cmd_stmt."
    }
  ]
}

Clone this wiki locally