Skip to content

Commit

Permalink
cove_rdls/templates/cove_rdls/validation_table.html: Remove number
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Sep 3, 2023
1 parent 4c37711 commit 5c2a7c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cove_rdls/templates/cove_rdls/validation_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
{% elif errors.0.validator == "uniqueItems" %}
<strong><code>{{ errors.0.path_ending}}</code> has non-unique items. The items in <code>{{ errors.0.path_ending}}</code> must be unique.</strong>
{% elif errors.0.validator == "enum" %}
<strong><code>{{ errors.0.path_ending }}</code> does not match any code. <code>{{ errors.0.path_ending }}</code> must match a code from the codelist specified in the schema.</strong>
{% with errors.0.path_ending|split:"/"|first as value %}
<strong><code>{{ value }}</code> does not match any code. <code>{{ value }}</code> must match a code from the codelist specified in the schema.</strong>
{% endwith %}
{% elif errors.0.validator == "pattern" and errors.0.path|length > 2 and errors.0.path|slice:"-2:-1" == "Link" and errors.0.path|last == "rel" %}
<strong><code>{{ errors.0.path_ending }}</code> does not match the regex <code>{{ errors.0.validator_value }}</code>. With the exception of the first item in the <code>links</code> array, the value of <code>{{ errors.0.path_ending }}</code> must not be 'describedby'.</code></strong>
{% elif errors.0.validator == "format" and errors.0.validator_value == "date" %}
Expand Down

0 comments on commit 5c2a7c7

Please sign in to comment.