validators

package
v0.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumValues

func EnumValues(values ...string) validator.String

EnumValues returns an instance of the validator with specified allowed values.

func EnumValuesList

func EnumValuesList(values ...string) validator.List

EnumValuesList returns an instance of the validator for list values with specified allowed values.

func JSONSchemaValidator

func JSONSchemaValidator() validator.String

JSONSchemaValidator returns a validator which ensures that a string attribute is a valid JSON and doesn't exceed the maximum allowed nesting depth

Types

This section is empty.

Jump to

Keyboard shortcuts

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