fix(nodes): fix metadata/workflow serialization

This commit is contained in:
psychedelicious 2023-10-17 19:08:01 +11:00
parent f0db4d36e4
commit 5a163f02a6
2 changed files with 0 additions and 6 deletions

View File

@ -830,9 +830,6 @@ class MetadataField(RootModel):
root: dict[str, Any] = Field(description="A dictionary of metadata, shape of which is arbitrary")
def model_dump(self, *args, **kwargs) -> dict[str, Any]:
return super().model_dump(*args, **kwargs)["root"]
type_adapter_MetadataField = TypeAdapter(MetadataField)

View File

@ -15,8 +15,5 @@ class WorkflowField(RootModel):
root: dict[str, Any] = Field(description="Workflow dict")
def model_dump(self, *args, **kwargs) -> dict[str, Any]:
return super().model_dump(*args, **kwargs)["root"]
type_adapter_WorkflowField = TypeAdapter(WorkflowField)