refactor(api/core/app/apps/base_app_generator.py): improve input validation and sanitization in BaseAppGenerator (#5866)

This commit is contained in:
-LAN- 2024-07-02 18:58:07 +08:00 • committed by GitHub
commit 66a62e6c13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 52 additions and 44 deletions

View file

@ -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):
"""