Documentation ¶
Index ¶
- func ConflictsWithNotEmpty(expressions ...path.Expression) validator.List
- func EnumValueValidator(enumList []string) validator.String
- func NewListValidator(desc string, ...) validator.List
- func NewMapValidator(desc string, ...) validator.Map
- func NewObjectValidator(desc string, ...) validator.Object
- func NewStringValidator(desc string, ...) validator.String
- func NotEmptyMapValidator() validator.Map
- type ConflictsWithNotEmptyValidator
- type ConflictsWithNotEmptyValidatorRequest
- type ConflictsWithNotEmptyValidatorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConflictsWithNotEmpty ¶ added in v1.6.5
func ConflictsWithNotEmpty(expressions ...path.Expression) validator.List
ConflictsWithNotEmpty ensures that a list parameter is not null and not empty if incompatible with the other paths specified in input It differs from standard ConflictsWith which only checks if the parameter is not null
func EnumValueValidator ¶
func NewListValidator ¶
func NewListValidator(desc string, validator func(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)) validator.List
func NewMapValidator ¶
func NewMapValidator(desc string, validator func(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)) validator.Map
func NewObjectValidator ¶
func NewObjectValidator(desc string, validator func(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)) validator.Object
func NewStringValidator ¶
func NewStringValidator(desc string, validator func(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)) validator.String
func NotEmptyMapValidator ¶ added in v1.5.0
Types ¶
type ConflictsWithNotEmptyValidator ¶ added in v1.6.5
type ConflictsWithNotEmptyValidator struct {
PathExpressions path.Expressions
}
ConflictsWithNotEmptyValidator is the underlying struct implementing ConflictsWithNotEmpty.
func (ConflictsWithNotEmptyValidator) Description ¶ added in v1.6.5
func (v ConflictsWithNotEmptyValidator) Description(ctx context.Context) string
func (ConflictsWithNotEmptyValidator) MarkdownDescription ¶ added in v1.6.5
func (v ConflictsWithNotEmptyValidator) MarkdownDescription(_ context.Context) string
func (ConflictsWithNotEmptyValidator) ValidateList ¶ added in v1.6.5
func (v ConflictsWithNotEmptyValidator) ValidateList(ctx context.Context, req validator.ListRequest, res *validator.ListResponse)
type ConflictsWithNotEmptyValidatorRequest ¶ added in v1.6.5
type ConflictsWithNotEmptyValidatorResponse ¶ added in v1.6.5
type ConflictsWithNotEmptyValidatorResponse struct {
Diagnostics diag.Diagnostics
}
Click to show internal directories.
Click to hide internal directories.