Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotNull ¶
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 SetNotNullValidator ¶
type SetNotNullValidator struct{}
SetNotNullValidator 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 (SetNotNullValidator) Description ¶
func (v SetNotNullValidator) Description(_ context.Context) string
Description describes the validation in plain text formatting.
func (SetNotNullValidator) MarkdownDescription ¶
func (v SetNotNullValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription describes the validation in Markdown formatting.
func (SetNotNullValidator) ValidateSet ¶
func (v SetNotNullValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
Validate performs the validation.