stl_support_diff_device
Compare a device's rendered output against expected JSON, forgiving input shapes and reporting assumed differences.
Instructions
Diff what a device actually rendered against what it should have.
Deliberately forgiving about the shape of actual_json: it accepts a bare
list, several wrapper shapes, and differing key names, and reports what it
assumed. The realistic input is something pasted out of a bug report, and a
support tool that rejects the user's paste over a key name has failed at
its one job.
Args: expected_json: a file path or inline JSON -- typically the output of stl_support_repro. actual_json: a file path or inline JSON captured from the device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actual_json | Yes | ||
| expected_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |