package oclib type Data struct { AbstractResource Protocols []string `json:"protocol"` //TODO Enum type DataType string `json:"datatype"` Example string `json:"example" required:"true" validate:"required" description:"base64 encoded data"` } func (d *Data) GetType() ResourceType{ return DATA }