List of datatypes or Nested Models Not Displaying Correctly in pydantic_input
form
#74
Open
3 of 4 tasks
Labels
pydantic_input
form
#74
Checklist
Summary
Description:
When using
pydantic_input
with lists (e.g.,List[str]
) or list of models, the form do not render correctly.This issue occurs despite following the correct usage patterns from the [official examples], specifically the Complex Instance Model example. This behavior is observed for:
List[str]
,List[int]
The above models give the following form when used with
pydantic_input
methodExpected Behaviour

Reproducible Code Example
Steps To Reproduce
requirements.txt
.app.py
.Dependencies:
Expected Behavior
keys
field should display as a list input with pre-filled values"id1"
,"id2"
.nested_items
field should render forms for each instance of theNestedModel
within a list form.Current Behavior
nested_items
are not displayed as expected, and editing or adding new instances is not possible.Is this a regression?
Debug info
Additional Information
Please advise on whether this is a compatibility issue or requires additional configuration. 😊
The text was updated successfully, but these errors were encountered: