mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-30 07:39:38 +00:00
fix postgres config validation
This commit is contained in:
parent
a2351bf2e9
commit
e542a980a8
1 changed files with 2 additions and 1 deletions
|
@ -54,8 +54,9 @@ class PostgresKVStoreConfig(CommonConfig):
|
|||
password: Optional[str] = None
|
||||
table_name: str = "llamastack_kvstore"
|
||||
|
||||
@classmethod
|
||||
@field_validator("table_name")
|
||||
def validate_table_name(self, v: str) -> str:
|
||||
def validate_table_name(cls, v):
|
||||
# PostgreSQL identifiers rules:
|
||||
# - Must start with a letter or underscore
|
||||
# - Can contain letters, numbers, and underscores
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue