validator

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MJMLRulesCollection = map[string]MJMLValidationRule{
	"validAttributes": rules.ValidateAttribute,
	"validChildren":   rules.ValidateChildren,
	"validTag":        rules.ValidateTag,
	"validTypes":      rules.ValidateType,
	"errorAttr":       rules.ErrorAttribute,
}

Functions

func MJMLValidator

func MJMLValidator(element *parser.MJMLNode, options *core.MJMLOptions) []*rules.RuleError

func RegisterDependency

func RegisterDependency(name string, deps []string)

func RegisterRule

func RegisterRule(rule MJMLValidationRule, name string)

Types

type MJMLValidationRule

type MJMLValidationRule func(element *parser.MJMLNode, options *rules.RuleOptions) []*rules.RuleError

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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