Browse Source

Add mandatory name attribute to OML model

Joeri Exelmans 2 years ago
parent
commit
62f87af80b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/xopp2oml/template.oml

+ 3 - 1
src/xopp2oml/template.oml

@@ -13,7 +13,9 @@ description <{{output_namespace}}#> as {{shorthand}} {
   uses <{{namespaces.dict}}#> as dict
   {%- endif %}
 
-  ci model : xopp:Model []
+  ci model : xopp:Model [
+    object_diagram:hasName "{{shorthand}}"
+  ]
 
   ci file : xopp:File [
     xopp:hasCreator {{ file.creator | to_oml_string_literal }}