This should be `{% set warnings = validation.warnings %}`.