Skip to content

The DAST report keys are sorted alphabetically

Cameron Swords requested to merge dast-report-has-consistent-key-order into master

What does this MR do?

The JSON output of DAST is deterministic. This makes testing significantly easier (or some situations, possible). Generally, this also helps make DAST align with the Robustness principle. This can make it easier for consumers to parse the output because it doesn't change order unexpectedly.

Note that the order is not considered part of the DAST API, that is, the order may change in between releases without notice.

This output has been confirmed to work with the latest version of GitLab at the time of creation.

This work was created to facilitate testing related to issue gitlab-org/gitlab#34151 (closed).

Merge request reports