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. |
Click to show internal directories.
Click to hide internal directories.