feat: form-input library with schema parsing and endpoint
This commit is contained in:
parent
80d81b8022
commit
46ecab00db
13 changed files with 2775 additions and 2 deletions
|
|
@ -37,6 +37,18 @@ class FlowVersionRead(BaseModel):
|
|||
deployed_at: datetime | None
|
||||
author: str
|
||||
created_at: datetime
|
||||
input_schema: dict | None = None
|
||||
|
||||
|
||||
class InputSchemaRead(BaseModel):
|
||||
"""Form schema of the latest deployed version (RJSF renders it)."""
|
||||
|
||||
flow_id: UUID
|
||||
version_no: int
|
||||
json_schema: dict
|
||||
ui_schema: dict = Field(default_factory=dict)
|
||||
# Set when the flow has no CustomInput node: render a free-text box.
|
||||
fallback: str | None = None
|
||||
|
||||
|
||||
class RunRequest(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue