[core][graphIO] Add "template" as an explicit key

This commit is contained in:
Yann Lanthony 2025-02-06 16:46:04 +01:00
parent b07dd64c11
commit 1cf0fc95ba
2 changed files with 4 additions and 3 deletions

View file

@ -24,6 +24,7 @@ class GraphIO:
ReleaseVersion = "releaseVersion"
FileVersion = "fileVersion"
Graph = "graph"
Template = "template"
class Features(Enum):
"""File Features."""
@ -122,7 +123,7 @@ class TemplateGraphSerializer(GraphSerializer):
def serializeHeader(self) -> dict:
header = super().serializeHeader()
header["template"] = True
header[GraphIO.Keys.Template] = True
return header
def serializeNode(self, node: Node) -> dict: