Documentation
¶
Index ¶
- Variables
- func Clean(msg map[string]interface{}, service model.Service) (result map[string]interface{}, err error)
- func DefaultMissingFields(msg map[string]interface{}, service model.Service) (result map[string]interface{}, err error)
- func RemoveUnknownFields(msg map[string]interface{}, service model.Service) (_ map[string]interface{}, err error)
- func Validate(msg map[string]interface{}, service model.Service, allowAdditionalFields bool, ...) error
- func ValidateMsgVariable(segment interface{}, variable model.ContentVariable, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingField = errors.New("missing field")
View Source
var ErrUnexpectedField = errors.New("unexpected field")
View Source
var ErrUnexpectedType = errors.New("unexpected type")
Functions ¶
func DefaultMissingFields ¶
func RemoveUnknownFields ¶
func ValidateMsgVariable ¶
func ValidateMsgVariable(segment interface{}, variable model.ContentVariable, allowAdditionalFields bool, allowMissingFields bool) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.