msgvalidation

package
v0.0.0-...-b1e6648 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

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 Clean

func Clean(msg map[string]interface{}, service model.Service) (result map[string]interface{}, err error)

func DefaultMissingFields

func DefaultMissingFields(msg map[string]interface{}, service model.Service) (result map[string]interface{}, err error)

func RemoveUnknownFields

func RemoveUnknownFields(msg map[string]interface{}, service model.Service) (_ map[string]interface{}, err error)

func Validate

func Validate(msg map[string]interface{}, service model.Service, allowAdditionalFields bool, allowMissingFields bool) error

func ValidateMsgVariable

func ValidateMsgVariable(segment interface{}, variable model.ContentVariable, allowAdditionalFields bool, allowMissingFields bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL