瀏覽代碼

Add mandatory name attribute to OML model

Joeri Exelmans 2 年之前
父節點
當前提交
62f87af80b
共有 1 個文件被更改,包括 3 次插入1 次删除
  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 }}