diff --git a/generator/generator.go b/generator/generator.go index 258ee7f7..44b7591c 100644 --- a/generator/generator.go +++ b/generator/generator.go @@ -81,6 +81,8 @@ func getTypeString(nullable bool, typeName string, schema *types.Schema, schemas return "string" case "hostname": return "string" + case "nullablestring": + return "*string" default: if schema != nil && schemas != nil { otherSchema := schemas.Schema(&schema.Version, typeName) diff --git a/parse/builder/builder.go b/parse/builder/builder.go index f27b09e3..dcc264d4 100644 --- a/parse/builder/builder.go +++ b/parse/builder/builder.go @@ -382,6 +382,8 @@ func ConvertSimple(fieldType string, value interface{}, op Operation) (interface return convert.ToString(value), nil case "reference": return convert.ToString(value), nil + case "nullablestring": + return convert.ToString(value), nil } return nil, ErrComplexType