We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b41eeb commit b1659f1Copy full SHA for b1659f1
validation/severity.rst
@@ -155,10 +155,7 @@ so that the severity is added as an additional HTML class:
155
{%- if errors|length > 0 -%}
156
<ul>
157
{%- for error in errors -%}
158
- {% if error.constraint.payload.severity is defined %}
159
- {% set severity = error.constraint.payload.severity %}
160
- {% endif %}
161
- <li{% if severity is defined %} class="{{ severity }}"{% endif %}>{{ error.message }}</li>
+ <li class="{{ error.constraint.payload.severity ?? '' }}">{{ error.message }}</li>
162
{%- endfor -%}
163
</ul>
164
{%- endif -%}
0 commit comments