It will be interested to get attribute type from type.
The given problem is from an open api data type I would like to set an attribute.
e := &Entity{}
typ := model.GetAttributeType("string") // "String" extracted from open api file.
e.SetAttribute(name, typ, v)