mirror of
https://github.com/rancher/norman.git
synced 2025-08-30 21:52:02 +00:00
Add base64 type
This commit is contained in:
parent
10aa5a70b0
commit
36e9738cde
@ -52,6 +52,8 @@ func getTypeString(nullable bool, typeName string, schema *types.Schema, schemas
|
||||
name := ""
|
||||
|
||||
switch typeName {
|
||||
case "base64":
|
||||
return "string"
|
||||
case "json":
|
||||
return "interface{}"
|
||||
case "boolean":
|
||||
|
@ -239,6 +239,8 @@ func (b *Builder) convert(fieldType string, value interface{}, op Operation) (in
|
||||
return convert.ToString(value), nil
|
||||
case "string":
|
||||
return convert.ToString(value), nil
|
||||
case "base64":
|
||||
return convert.ToString(value), nil
|
||||
case "reference":
|
||||
return convert.ToString(value), nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user