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 NumberNotNullValidator ¶
type NumberNotNullValidator struct{}
NumberNotNullValidator 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 (NumberNotNullValidator) Description ¶
func (v NumberNotNullValidator) Description(_ context.Context) string
Description describes the validation in plain text formatting.
func (NumberNotNullValidator) MarkdownDescription ¶
func (v NumberNotNullValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription describes the validation in Markdown formatting.
func (NumberNotNullValidator) ValidateNumber ¶
func (v NumberNotNullValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
Validate performs the validation.