mapvalidators

package
v2.0.0-...-5a0ceae Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotNull

func NotNull() validator.Map

NotNull returns an validator which ensures that the attribute is configured. Most attributes should set Required: true instead, however in certain scenarios, such as a computed nested attribute, all underlying attributes must also be computed for planning to not show unexpected differences.

Types

type MapNotNullValidator

type MapNotNullValidator struct{}

MapNotNullValidator validates that an attribute is not null. Most attributes should set Required: true instead, however in certain scenarios, such as a computed nested attribute, all underlying attributes must also be computed for planning to not show unexpected differences.

func (MapNotNullValidator) Description

func (v MapNotNullValidator) Description(_ context.Context) string

Description describes the validation in plain text formatting.

func (MapNotNullValidator) MarkdownDescription

func (v MapNotNullValidator) MarkdownDescription(ctx context.Context) string

MarkdownDescription describes the validation in Markdown formatting.

func (MapNotNullValidator) ValidateMap

Validate performs the validation.

Jump to

Keyboard shortcuts

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