🚧 WIP
This commit is contained in:
@@ -185,6 +185,12 @@ class BrokerSettingsIn(BaseModel):
|
||||
value_type: Literal["string", "int", "bool"] = "string"
|
||||
|
||||
|
||||
class BrokerSettingsOut(BrokerSettingsIn):
|
||||
"""GET /broker/settings rows — same fields, from ORM attributes."""
|
||||
|
||||
model_config = {"from_attributes": True}
|
||||
|
||||
|
||||
class ListenerIn(BaseModel):
|
||||
name: str = Field(min_length=1, max_length=100)
|
||||
enabled: bool = True
|
||||
|
||||
Reference in New Issue
Block a user