mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-26 14:55:01 +00:00
Add TypeLowerCaseString (#4683)
This commit is contained in:
@@ -530,9 +530,7 @@ func (s *FieldSchema) DefaultOrZero() interface{} {
|
||||
// Zero returns the correct zero-value for a specific FieldType
|
||||
func (t FieldType) Zero() interface{} {
|
||||
switch t {
|
||||
case TypeNameString:
|
||||
return ""
|
||||
case TypeString:
|
||||
case TypeString, TypeNameString, TypeLowerCaseString:
|
||||
return ""
|
||||
case TypeInt:
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user