Skip to content

Int64Validator

Int64 validator are used to validate the plan of a int64 attribute. It will be used into the Validators field of the schema.Int64Attribute struct.

How to use it

import (
    fint64validator "github.com/FrangipaneTeam/terraform-plugin-framework-validators/int64validator"
)

List of Validators

  • RequireIfAttributeIsOneOf - This validator is used to require the attribute if another attribute is one of the given values.
  • RequireIfAttributeIsSet - This validator is used to require the attribute if another attribute is set.
  • NullIfAttributeIsOneOf - This validator is used to verify the attribute value is null if another attribute is one of the given values.
  • NullIfAttributeIsSet - This validator is used to verify the attribute value is null if another attribute is set.
  • OneOfWithDescription - This validator is used to check if the string is one of the given values and format the description and the markdown description.
  • AttributeIsDivisibleByAnInteger - This validator is used to validate that the attribute is divisible by an integer.
  • ZeroRemainder - This validator checks if the configured attribute is divisible by a specified integer X, and has zero remainder.

Special

  • Not - This validator is used to negate the result of another validator.