Skip to content

Commit

Permalink
cove_rdls/templates/cove_rdls/validation_table.html: Fix first links …
Browse files Browse the repository at this point in the history
…error message
  • Loading branch information
Ed (ODSC) committed Sep 6, 2023
1 parent c3815c0 commit b198e35
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cove_rdls/templates/cove_rdls/validation_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
<tr>
<td>
<p>
{% if errors.0.validator == "const" and errors.0.validator_value == "describedby" %}
{% if errors.0.validator == "const" and errors.0.validator_value == "describedby" and errors.0.path|links_rel_first %}
<strong><code>{{ errors.0.path_ending }}</code> is not 'describedby'. The first item in the <code>links</code> array must be a link to the canonical URL of the RDLS JSON schema with relation type 'describedby'.</strong>
{% elif errors.0.validator == "const" and errors.0.validator_value == "describedby" %}
<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 links array, the value of <code>{{ errors.0.path_ending }}</code> must not be 'describedby'.</strong>
{% elif errors.0.validator == "const" %}
<strong><code>{{ errors.0.path_ending}}</code> does not match constant specified in schema. The value must be {{ errors.0.validator_value }}.</strong>
Expand All @@ -49,7 +51,8 @@
<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|links_rel_first %}
<strong><code>{{ errors.0.path_ending }}</code> is not 'describedby'. The first item in the <code>links</code> array must be a link to the canonical URL of the RDLS JSON schema with relation type 'describedby'.</strong>
<strong><code>{{ errors.0.path_ending }}</code> is not 'describedby'. The first item in the <code>links</code> array must be a link
to the canonical URL of the RDLS JSON schema with relation type 'describedby'.</strong>
{% elif errors.0.validator == "pattern" and errors.0.path|links_rel_subsequent %}
<strong><code>{{ errors.0.path_ending }}</code> is 'describedby'. 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'.</strong>
{% elif errors.0.validator == "pattern" %}
Expand Down

0 comments on commit b198e35

Please sign in to comment.