paramvalidator

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package paramvalidator is responsible for registering all the param validators available and exposes getter functions to be utilized by other modules

Package paramvalidator is responsible for registering all the param validators for a document available and exposes getter functions to be utilized by other modules

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParameterValidator

type ParameterValidator interface {
	// Validate validates the parameter value based on the parameter definition
	Validate(log log.T, parameterValue interface{}, parameter *contracts.Parameter) error
	// GetName returns the name of param validator
	GetName() string
}

ParameterValidator is the interface for various Parameter validators

func GetMandatoryValidators

func GetMandatoryValidators() []ParameterValidator

GetMandatoryValidators returns all the registered mandatory parameter validators

func GetOptionalValidators

func GetOptionalValidators() []ParameterValidator

GetOptionalValidators returns all the registered optional parameter validators

Directories

Path Synopsis
Package allowedregexparamvalidator is responsible for validating parameter value with regex pattern given in the document.
Package allowedregexparamvalidator is responsible for validating parameter value with regex pattern given in the document.
Package allowedvalueparamvalidator is responsible for validating parameter value with the allowed values given in the document.
Package allowedvalueparamvalidator is responsible for validating parameter value with the allowed values given in the document.
Package minmaxcharparamvalidator is responsible for validating parameter value with the min max char restriction given in the document for parameters.
Package minmaxcharparamvalidator is responsible for validating parameter value with the min max char restriction given in the document for parameters.
Package minmaxitemparamvalidator is responsible for validating parameter value with the min max item restriction given in the document for parameters.
Package minmaxitemparamvalidator is responsible for validating parameter value with the min max item restriction given in the document for parameters.

Jump to

Keyboard shortcuts

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