When we create a UserField from admin dashboard, the configuration field may not follow the schema of UserFieldConfiguration.
Typically, when creating a date field, the form doesn't show the default field. Therefore, it's not included in the serialization when saved to DB. This has caused bugs like #165.
When creating from the API, it doesn't happen because the Pydantic schema make sure to add the field with None value.
We should improve this so the configuration field conforms to the schema even when created/updated from the dashboard.
When we create a
UserField
from admin dashboard, theconfiguration
field may not follow the schema ofUserFieldConfiguration
.Typically, when creating a date field, the form doesn't show the
default
field. Therefore, it's not included in the serialization when saved to DB. This has caused bugs like #165.When creating from the API, it doesn't happen because the Pydantic schema make sure to add the field with
None
value.We should improve this so the
configuration
field conforms to the schema even when created/updated from the dashboard.