Return multiple errors and warnings in CI Lint API endpoint
Problem
CI Lint API endpoint returns always the first error encountered even if multiple errors are raised. This is different than the Lint UI where multiple errors and warnings are displayed.
Now that YamlProcessor
can return multiple errors we can return them via the Lint API together with any warnings.
Reference: !40013 (comment 405212951)
Solution
Remove method YamlProcessor.validation_message
and use YamlProcessor.new(...).execute
instead in the Lint API endpoint. Then expose errors and warnings.