validate

package
v1.4.30 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NamePattern, _ = regexp.Compile("^[$a-zA-Z][$a-zA-Z0-9_-]*$")

Functions

func BooleanExpression added in v1.3.95

func BooleanExpression(resource *model.Resource, propertyPathMap map[string]bool, exp *model.BooleanExpression) error

func Expression added in v1.3.95

func Expression(resource *model.Resource, pathMap map[string]bool, exp *model.Expression) error

func Filters added in v1.3.95

func Filters(propertyPathMap map[string]bool, filters map[string]interface{}) error

func PairExpression added in v1.3.95

func PairExpression(resource *model.Resource, pathMap map[string]bool, equal *model.PairExpression) error

func RecordListParams added in v1.3.95

func RecordListParams(resource *model.Resource, propertyPathMap map[string]bool, params service.RecordListParams) error

func Records

func Records(resource abs.ResourceLike, list []*model.Record, isUpdate bool) error

func ValidateResource

func ValidateResource(resource *model.Resource) error

func ValidateResourceProperties

func ValidateResourceProperties(resource *model.Resource, path string, depth int, properties []*model.ResourceProperty, wrapped bool) []*model.ErrorField

func Value added in v1.2.21

func Value(resource abs.ResourceLike, property *model.ResourceProperty, recordId string, propertyPath string, value *structpb.Value) []*model.ErrorField

Types

This section is empty.

Jump to

Keyboard shortcuts

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