Help us shape the future of Go! Take the 2026 Go Developer Survey

validators

package
v1.12.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package validators holds schema validators shared across resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONObject

func JSONObject() validator.String

JSONObject validates that a string attribute holds a JSON object, such as iac_input_data.data. Invalid input used to be replaced by {} when building the request, so the user's inputs were silently dropped and the apply failed with "inconsistent result after apply". Checking it here fails `terraform plan` with a message that names the attribute instead. An empty string means no data and is accepted; null and unknown values are left to the attribute's other rules (an unknown value is checked again when the request is built).

func QualifiedTemplateRevisionId

func QualifiedTemplateRevisionId() validator.String

QualifiedTemplateRevisionId validates "/<owner-org>/<template-id>:<revision>".

Types

This section is empty.

Jump to

Keyboard shortcuts

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