Describe the bug 馃悰
The --run_name parameter is listed in the CI arguments section of the README https://github.com/faros-ai/faros-events-cli/tree/main?tab=readme-ov-file#ci-arguments
When adding the parameter to the call, an error HTTP Status: 422 is returned. When removing the parameter, the call returns an HTTP 200
Steps to reproduce the behavior 馃暪
faros_event.sh CI -k ${API_KEY} --commit GitHub://ORG/repo/sha --run Jenkins://ORG/repo-build/7 --run_status Success --run_name "Run Name" --run_start_time 2026-04-01T20:11:13Z --run_end_time 2026-04-01T20:48:27Z --validate_only
Returns:
[2026-04-02 04:42:23] INFO Request Body: [2026-04-02 04:42:23] INFO { "type": "CI", "version": "0.0.1", "origin": "Faros_Script_Event", "data": { "commit": { "uri": "GitHub://ORG/repo/sha" }, "run": { "uri": "Jenkins://ORG/repo-build/7", "name": "Run Name", "status": "Success", "startTime": "2026-04-01T20:11:13Z", "endTime": "2026-04-01T20:48:27Z" } } } [2026-04-02 04:42:23] INFO Sending event to Faros (graph: default)... [2026-04-02 04:42:23] ERROR [HTTP status: 422] [2026-04-02 04:42:23] ERROR Response Body: [2026-04-02 04:42:23] ERROR { "error": { "message": "Invalid event data", "details": [ { "message": "data.run must NOT have additional properties", "additionalProperties": [ "name" ] } ] } } [2026-04-02 04:42:23] ERROR Failed.
Expected behavior 馃
The name should be accepted per the documentation, and a HTTP 200 status is returned
Describe the bug 馃悰
The
--run_nameparameter is listed in the CI arguments section of the README https://github.com/faros-ai/faros-events-cli/tree/main?tab=readme-ov-file#ci-argumentsWhen adding the parameter to the call, an error HTTP Status: 422 is returned. When removing the parameter, the call returns an HTTP 200
Steps to reproduce the behavior 馃暪
faros_event.sh CI -k ${API_KEY} --commit GitHub://ORG/repo/sha --run Jenkins://ORG/repo-build/7 --run_status Success --run_name "Run Name" --run_start_time 2026-04-01T20:11:13Z --run_end_time 2026-04-01T20:48:27Z --validate_onlyReturns:
[2026-04-02 04:42:23] INFO Request Body: [2026-04-02 04:42:23] INFO { "type": "CI", "version": "0.0.1", "origin": "Faros_Script_Event", "data": { "commit": { "uri": "GitHub://ORG/repo/sha" }, "run": { "uri": "Jenkins://ORG/repo-build/7", "name": "Run Name", "status": "Success", "startTime": "2026-04-01T20:11:13Z", "endTime": "2026-04-01T20:48:27Z" } } } [2026-04-02 04:42:23] INFO Sending event to Faros (graph: default)... [2026-04-02 04:42:23] ERROR [HTTP status: 422] [2026-04-02 04:42:23] ERROR Response Body: [2026-04-02 04:42:23] ERROR { "error": { "message": "Invalid event data", "details": [ { "message": "data.run must NOT have additional properties", "additionalProperties": [ "name" ] } ] } } [2026-04-02 04:42:23] ERROR Failed.Expected behavior 馃
The name should be accepted per the documentation, and a HTTP 200 status is returned