-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Piggy backing on #134 but further diving into it, the forms UI fails to utilise the data provided via the schema route under some scenarios.
Case one
Code:
class Form(BaseModel):
end_date: Optional[date] = NoneSchema:
{
"end_date": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "End Date"
}
}Expectation:
UI displays the date picker, but with no value selected by default
Actual:
Empty text field
Case two
Code:
class Form(BaseModel):
enum: MyEnumSchema:
Includes a $defs to the schema area with the correct data
Expectation:
Drop down with the values
Actual:
- It fails to put a name above to the text field
- Empty text field
Case three
Clicking "Use again" does not appear to prefill placeholders
Metadata
Metadata
Assignees
Labels
No labels