pfSense-pkg-RESTAPI

Validators

Table of Contents

Classes

EmailAddressValidator
Defines a Validator that determines if a given value is a valid email address.
FilterNameValidator
Defines a Validator that checks if a given value is a valid firewall filter name.
HexValidator
Defines a Validator that checks if a given value is a valid hexadecimal value.
HostnameValidator
Defines a Validator that checks if a given value is a valid hostname, domain or FQDN.
IPAddressValidator
Defines a Validator that checks if a given value is a valid IPv4 or IPv6 address.
LengthValidator
Defines a Validator that checks if a given value is within a specified length range. This can be used to check both array and string lengths.
MACAddressValidator
Defines a Validator that checks if a given value is a valid MAC address.
NumericRangeValidator
Defines a Validator that checks if a given value is within a specified numeric range.
RegexValidator
Defines a Validator that checks if a given value matches a specified regex pattern.
SubnetValidator
Defines a Validator that checks if a given value is a valid subnet CIDR.
UniqueFromForeignModelValidator
Defines a Validator object that ensures a Field's value is unique from another specified Model's field. This allows you to prevent a Field from being set to the same value as a different Model's Field.
URLValidator
Defines a Validator that checks if a given value is a valid URL
X509Validator
Defines a Validator that determines if a given string is an X509 encoded object.

        
On this page

Search results