1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-31 06:35:09 +00:00

Add base64 type

This commit is contained in:
Darren Shepherd
2017-12-22 23:11:55 -07:00
parent 10aa5a70b0
commit 36e9738cde
2 changed files with 4 additions and 0 deletions

View File

@@ -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":

View File

@@ -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
}