refactor(api/core/app/apps/base_app_generator.py): improve input validation and sanitization in BaseAppGenerator (#5866)
This commit is contained in:
parent
04c0a9ad45
commit
66a62e6c13
2 changed files with 52 additions and 44 deletions
|
|
@ -114,6 +114,10 @@ class VariableEntity(BaseModel):
|
|||
default: Optional[str] = None
|
||||
hint: Optional[str] = None
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
return self.variable
|
||||
|
||||
|
||||
class ExternalDataVariableEntity(BaseModel):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue