{"modulePath":"github.com/NaverCloudPlatform/terraform-plugin-codegen-openapi","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package frameworkvalidators\n\nPackage frameworkvalidators contains functionality for mapping validations onto specification that uses terraform-plugin-framework-validators.\n\nCurrently, the specification requires all schema validations to be written as \"custom\" validations. Over time, the specification may begin to support \"native\" validations for very common use cases as specific properties, which would alleviate some of the need of this package.\n\n## Constants\n\n```go\nconst (\n\t// CodeImportBasePath is the base code import path for framework validators.\n\tCodeImportBasePath = \"github.com/hashicorp/terraform-plugin-framework-validators\"\n)\n```\n\n```go\nconst (\n\t// Float64ValidatorPackage is the name of the float64 validation package in\n\t// the framework validators module.\n\tFloat64ValidatorPackage = \"float64validator\"\n)\n```\n\n```go\nconst (\n\t// Int32ValidatorPackage is the name of the int32 validation package in\n\t// the framework validators module.\n\tInt32ValidatorPackage = \"int32validator\"\n)\n```\n\n```go\nconst (\n\t// Int64ValidatorPackage is the name of the int64 validation package in\n\t// the framework validators module.\n\tInt64ValidatorPackage = \"int64validator\"\n)\n```\n\n```go\nconst (\n\t// ListValidatorPackage is the name of the list validation package in\n\t// the framework validators module.\n\tListValidatorPackage = \"listvalidator\"\n)\n```\n\n```go\nconst (\n\t// MapValidatorPackage is the name of the set validation package in\n\t// the framework validators module.\n\tMapValidatorPackage = \"mapvalidator\"\n)\n```\n\n```go\nconst (\n\t// SetValidatorPackage is the name of the set validation package in\n\t// the framework validators module.\n\tSetValidatorPackage = \"setvalidator\"\n)\n```\n\n```go\nconst (\n\t// StringValidatorPackage is the name of the string validation package in\n\t// the framework validators module.\n\tStringValidatorPackage = \"stringvalidator\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\t// Float64ValidatorCodeImport is a single allocation of the framework\n\t// validators module float64validator package import.\n\tFloat64ValidatorCodeImport code.Import = CodeImport(Float64ValidatorPackage)\n)\n```\n\n```go\nvar (\n\t// Int32ValidatorCodeImport is a single allocation of the framework\n\t// validators module int32validator package import.\n\tInt32ValidatorCodeImport code.Import = CodeImport(Int32ValidatorPackage)\n)\n```\n\n```go\nvar (\n\t// Int64ValidatorCodeImport is a single allocation of the framework\n\t// validators module int64validator package import.\n\tInt64ValidatorCodeImport code.Import = CodeImport(Int64ValidatorPackage)\n)\n```\n\n```go\nvar (\n\t// ListValidatorCodeImport is a single allocation of the framework\n\t// validators module listvalidator package import.\n\tListValidatorCodeImport code.Import = CodeImport(ListValidatorPackage)\n)\n```\n\n```go\nvar (\n\t// MapValidatorCodeImport is a single allocation of the framework\n\t// validators module mapvalidator package import.\n\tMapValidatorCodeImport code.Import = CodeImport(MapValidatorPackage)\n)\n```\n\n```go\nvar (\n\t// SetValidatorCodeImport is a single allocation of the framework\n\t// validators module setvalidator package import.\n\tSetValidatorCodeImport code.Import = CodeImport(SetValidatorPackage)\n)\n```\n\n```go\nvar (\n\t// StringValidatorCodeImport is a single allocation of the framework\n\t// validators module stringvalidator package import.\n\tStringValidatorCodeImport code.Import = CodeImport(StringValidatorPackage)\n)\n```\n\n## Functions\n\n```go\nfunc CodeImport(packagePath string) code.Import\n```\nCodeImport returns the framework validators code import for the given path.\n\n```go\nfunc Float64ValidatorOneOf(values []float64) *schema.CustomValidator\n```\nFloat64ValidatorOneOf returns a custom validator mapped to the Float64validator package OneOf function. If the values are nil or empty, nil is returned.\n\n```go\nfunc Int32ValidatorAtLeast(minimum int32) *schema.CustomValidator\n```\nInt32ValidatorAtLeast returns a custom validator mapped to the int32validator package AtLeast function.\n\n```go\nfunc Int32ValidatorAtMost(maximum int32) *schema.CustomValidator\n```\nInt32ValidatorAtMost returns a custom validator mapped to the int32validator package AtMost function.\n\n```go\nfunc Int32ValidatorBetween(minimum, maximum int32) *schema.CustomValidator\n```\nInt32ValidatorBetween returns a custom validator mapped to the int32validator package Between function.\n\n```go\nfunc Int32ValidatorOneOf(values []int32) *schema.CustomValidator\n```\nInt32ValidatorOneOf returns a custom validator mapped to the int32validator package OneOf function. If the values are nil or empty, nil is returned.\n\n```go\nfunc Int64ValidatorAtLeast(minimum int64) *schema.CustomValidator\n```\nInt64ValidatorAtLeast returns a custom validator mapped to the int64validator package AtLeast function.\n\n```go\nfunc Int64ValidatorAtMost(maximum int64) *schema.CustomValidator\n```\nInt64ValidatorAtMost returns a custom validator mapped to the int64validator package AtMost function.\n\n```go\nfunc Int64ValidatorBetween(minimum, maximum int64) *schema.CustomValidator\n```\nInt64ValidatorBetween returns a custom validator mapped to the int64validator package Between function.\n\n```go\nfunc Int64ValidatorOneOf(values []int64) *schema.CustomValidator\n```\nInt64ValidatorOneOf returns a custom validator mapped to the int64validator package OneOf function. If the values are nil or empty, nil is returned.\n\n```go\nfunc ListValidatorSizeAtLeast(minimum int64) *schema.CustomValidator\n```\nListValidatorSizeAtLeast returns a custom validator mapped to the listvalidator package SizeAtLeast function.\n\n```go\nfunc ListValidatorSizeAtMost(maximum int64) *schema.CustomValidator\n```\nListValidatorSizeAtMost returns a custom validator mapped to the listvalidator package SizeAtMost function.\n\n```go\nfunc ListValidatorSizeBetween(minimum, maximum int64) *schema.CustomValidator\n```\nListValidatorSizeBetween returns a custom validator mapped to the listvalidator package SizeBetween function.\n\n```go\nfunc ListValidatorUniqueValues() *schema.CustomValidator\n```\nListValidatorUniqueValues returns a custom validator mapped to the listvalidator package UniqueValues function.\n\n```go\nfunc MapValidatorSizeAtLeast(minimum int64) *schema.CustomValidator\n```\nMapValidatorSizeAtLeast returns a custom validator mapped to the Mapvalidator package SizeAtLeast function.\n\n```go\nfunc MapValidatorSizeAtMost(maximum int64) *schema.CustomValidator\n```\nMapValidatorSizeAtMost returns a custom validator mapped to the Mapvalidator package SizeAtMost function.\n\n```go\nfunc MapValidatorSizeBetween(minimum, maximum int64) *schema.CustomValidator\n```\nMapValidatorSizeBetween returns a custom validator mapped to the Mapvalidator package SizeBetween function.\n\n```go\nfunc SetValidatorSizeAtLeast(minimum int64) *schema.CustomValidator\n```\nSetValidatorSizeAtLeast returns a custom validator mapped to the Setvalidator package SizeAtLeast function.\n\n```go\nfunc SetValidatorSizeAtMost(maximum int64) *schema.CustomValidator\n```\nSetValidatorSizeAtMost returns a custom validator mapped to the Setvalidator package SizeAtMost function.\n\n```go\nfunc SetValidatorSizeBetween(minimum, maximum int64) *schema.CustomValidator\n```\nSetValidatorSizeBetween returns a custom validator mapped to the Setvalidator package SizeBetween function.\n\n```go\nfunc StringValidatorLengthAtLeast(minimum int64) *schema.CustomValidator\n```\nStringValidatorLengthAtLeast returns a custom validator mapped to the stringvalidator package LengthAtLeast function.\n\n```go\nfunc StringValidatorLengthAtMost(maximum int64) *schema.CustomValidator\n```\nStringValidatorLengthAtMost returns a custom validator mapped to the stringvalidator package LengthAtMost function.\n\n```go\nfunc StringValidatorLengthBetween(minimum, maximum int64) *schema.CustomValidator\n```\nStringValidatorLengthBetween returns a custom validator mapped to the stringvalidator package LengthBetween function.\n\n```go\nfunc StringValidatorOneOf(values []string) *schema.CustomValidator\n```\nStringValidatorOneOf returns a custom validator mapped to the stringvalidator package OneOf function. If the values are nil or empty, nil is returned.\n\n```go\nfunc StringValidatorRegexMatches(pattern, message string) *schema.CustomValidator\n```\nStringValidatorRegexMatches returns a custom validator mapped to the stringvalidator package RegexMatches function.\n\n","path":"github.com/NaverCloudPlatform/terraform-plugin-codegen-openapi/internal/mapper/frameworkvalidators","name":"frameworkvalidators","synopsis":"Package frameworkvalidators contains functionality for mapping validations onto specification that uses terraform-plugin-framework-validators.","isRedistributable":true}
