oc-lib/data.go
2024-07-16 11:05:11 +02:00

17 lines
318 B
Go

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
}