omitempty
This commit is contained in:
		| @@ -10,8 +10,8 @@ import ( | ||||
| type DataResource struct { | ||||
| 	resources.AbstractResource | ||||
| 	Protocols []string `json:"protocol,omitempty" bson:"protocol,omitempty"` //TODO Enum type | ||||
| 	DataType  string   `json:"datatype,omitempty" bson:"datatype"` | ||||
| 	Example   string   `json:"example,omitempty" bson:"example" description:"base64 encoded data"` | ||||
| 	DataType  string   `json:"datatype,omitempty" bson:"datatype,omitempty"` | ||||
| 	Example   string   `json:"example,omitempty" bson:"example,omitempty" description:"base64 encoded data"` | ||||
| } | ||||
|  | ||||
| func (dma *DataResource) Deserialize(j map[string]interface{}) utils.DBObject { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user