Actions
action #125990
openAllow client-side validation of YAML files posted via `openqa-cli`
Start date:
2023-03-14
Due date:
% Done:
0%
Estimated time:
Description
Motivation¶
Since https://github.com/os-autoinst/openQA/pull/4999 has been merged there are now already two routes that expect YAML data. So far the YAML documents are validated against a schema on the server-side. This should of course stay but it would be nice to validate the YAML documents also on the client-side to catch errors early.
Acceptance criteria¶
- AC1: YAML documents specified via
openqa-cli
for job templates or scenario definitions are validated by theopenqa-cli
before the actual request is done. Errors are reported to the user and no request is done in the error case. - AC2: The validation can be disabled.
Actions