🚀 feat(frontend_node): add custom_fields attribute to FrontendNode class

The FrontendNode class now has a new attribute called custom_fields, which is a list of strings. This attribute can be used to store any custom fields that are specific to a particular frontend node. This change allows for more flexibility in the data that can be stored in a FrontendNode object.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-27 18:23:38 -03:00
commit 38404e1243

View file

@ -15,6 +15,7 @@ class FrontendNode(BaseModel):
base_classes: List[str]
name: str = ""
display_name: str = ""
custom_fields: List[str] = []
def to_dict(self) -> dict:
return {
@ -23,6 +24,7 @@ class FrontendNode(BaseModel):
"description": self.description,
"base_classes": self.base_classes,
"display_name": self.display_name or self.name,
"custom_fields": self.custom_fields,
},
}