feat: form-input library with schema parsing and endpoint

This commit is contained in:
Jonas Miederer 2026-09-12 07:36:05 +02:00
parent 80d81b8022
commit 46ecab00db
13 changed files with 2775 additions and 2 deletions

View file

@ -10,6 +10,7 @@ from sqlmodel import Session, func, select
from app.models import ApprovalTask, FlowDefinition, FlowRun, FlowVersion
from . import input_schema as form_schema
from .schemas import ApprovalCreate, FlowDefinitionCreate, FlowVersionCreate
@ -154,6 +155,9 @@ def create_version(
version_no=(max_no or 0) + 1,
langflow_json=data.langflow_json,
author=data.author,
# Single choke point: sync, import, and API creation all cache the
# form schema here, so reads never re-parse.
input_schema=form_schema.extract_form_schema(data.langflow_json),
)
session.add(version)
session.commit()