Skip to content

Commit

Permalink
Fix failing test where modified property is overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasdairGray committed Oct 27, 2023
1 parent b4f8077 commit c724f65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/templates/class.md.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ URI: {{ gen.uri_link(element) }}
{% endif %}
{%- endmacro %}

{% set slots = schemaview.class_induced_slots(element.name) | rejectattr("required", "none") | sort(attribute='name') -%}
{% set slots = schemaview.class_induced_slots(element.name) | rejectattr("required", "none") | rejectattr("required", "false") | sort(attribute='name') -%}
{{ slots_table("Mandatory", slots) }}

{% set slots = schemaview.class_induced_slots(element.name) | rejectattr("recommended", "none") | sort(attribute='name') -%}
{% set slots = schemaview.class_induced_slots(element.name) | rejectattr("recommended", "none") | rejectattr("recommended", "false") | sort(attribute='name') -%}
{{ slots_table("Recommended", slots) }}

{% set slots = schemaview.class_induced_slots(element.name) | rejectattr("required") | rejectattr("recommended") | sort(attribute='name') -%}
Expand Down
1 change: 1 addition & 0 deletions src/model/uk_cross_government_metadata_exchange_model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ classes:
description:
required: false
modified:
required: false
recommended: true

Organisation:
Expand Down

0 comments on commit c724f65

Please sign in to comment.