Skip to content

Commit b52996d

Browse files
authored
Fix "payload" usage
1 parent 15185ab commit b52996d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation/severity.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ so that the severity is added as an additional HTML class:
148148
{%- if errors|length > 0 -%}
149149
<ul>
150150
{%- for error in errors -%}
151-
{% if error.cause.constraint.payload.severity is defined %}
152-
{% set severity = error.cause.constraint.payload.severity %}
151+
{% if error.constraint.payload.severity is defined %}
152+
{% set severity = error.constraint.payload.severity %}
153153
{% endif %}
154154
<li{% if severity is defined %} class="{{ severity }}"{% endif %}>{{ error.message }}</li>
155155
{%- endfor -%}

0 commit comments

Comments
 (0)