stringvalidators

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupConfigurationTemplateID added in v3.6.4

func GroupConfigurationTemplateID() validator.String

GroupConfigurationTemplateID prevents configurations that the API rejects when a group is attached to a configuration template.

Visibility stays required for untemplated groups (the previous schema marked it required). ExactlyOneOf with visibility restores that without forcing a value that the template would ignore.

func NotNull

func NotNull() validator.String

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.

func ResourceConfigurationTemplateID added in v3.6.4

func ResourceConfigurationTemplateID() validator.String

ResourceConfigurationTemplateID prevents configurations that the API rejects when a resource is attached to a configuration template.

Visibility stays required for untemplated resources (the previous schema marked it required). ExactlyOneOf with visibility restores that without forcing a value that the template would ignore.

Types

type StringNotNullValidator

type StringNotNullValidator struct{}

StringNotNullValidator 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 (StringNotNullValidator) Description

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

Description describes the validation in plain text formatting.

func (StringNotNullValidator) MarkdownDescription

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

MarkdownDescription describes the validation in Markdown formatting.

func (StringNotNullValidator) ValidateString

Validate performs the validation.

Jump to

Keyboard shortcuts

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