To reduce the size of wbcheckconstraints action API responses requested by the checkConstraints gadget, we’d like to add some parameter so that only the results which the gadget will actually display are returned: warnings, violations, and bad parameters. (This would be disabled by default, otherwise it’d be a breaking change.)
Once we move towards storing the constraint check results in the database ({T179849}; for {T180582}), we can also consider whether we only want to store those partial results in the database (see T179849#3762879 and T179849#3767372). This would mean that API requests without this parameter set would not benefit from the cache, so we should definitely track how many requests use the parameter, to inform our decision later.
Open question: what exactly should this parameter be? A simple boolean flag, or perhaps a list of constraint statuses in which we’re interested?