When a field has an Optional type for an Array, the widgetcaller fails to find the appropriate widget. This may also occur for other custom widgets. Definitely worth checking.
Recreate The Issue
Define simple example schema that will create an Array widget.
from typing import List, Optional
from pydantic import BaseModel
class Example(BaseModel):
allowed_values: Optional[List[str]]
AutoObject(schema=Example)
Describe The Issue
When a field has an Optional type for an Array, the widgetcaller fails to find the appropriate widget. This may also occur for other custom widgets. Definitely worth checking.
Recreate The Issue
Define simple example schema that will create an Array widget.
Output: Widget not found