- icon_id => sub { defined $_[1] ? icon($_[1]) : ICON_PASSWORD },
- custom_icon_uuid => undef,
- foreground_color => '',
- background_color => '',
- override_url => '',
- tags => '',
- auto_type => sub { +{} },
- previous_parent_group => undef,
- quality_check => true,
- strings => sub { +{} },
- binaries => sub { +{} },
- # custom_data => sub { +{} },
- # history => sub { +[] },
+ # icon_id => sub { defined $_[1] ? icon($_[1]) : ICON_PASSWORD },
+ custom_icon_uuid => [undef, coerce => \&to_uuid],
+ foreground_color => ['', coerce => \&to_string],
+ background_color => ['', coerce => \&to_string],
+ override_url => ['', coerce => \&to_string],
+ tags => ['', coerce => \&to_string],
+ auto_type => [{}],
+ previous_parent_group => [undef, coerce => \&to_uuid],
+ quality_check => [true, coerce => \&to_bool],
+ strings => [{}],
+ binaries => [{}],
+ times => [{}],
+ # custom_data => {},
+ # history => [],