Explorar el Código

Add mandatory name attribute to OML model

Joeri Exelmans hace 2 años
padre
commit
62f87af80b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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 }}