Validates that every supplied validator passes
The value returned from each validator is passed as the value to the next one.
name – Name of the argument
value – A value
The value transformed through every supplied validator
The error from the first failed validator
Validate that the value is a string representing a boolean
name – Name of the argument
value – A string value
The boolean representation of the value, or None if value is None
InvalidParameterValue if the value cannot be converted to a boolean
Return a validator function which validates dict fields
Validators will replace the value with the validation result. Any dict item which has no validator is ignored. When a key is missing in the value then the corresponding validator will not be run.
validators dict where the key is a dict key to validate and the value is a validator function to run on that value
validator function which takes name and value arguments
Validate that the value represents an integer
name – Name of the argument
value – A value representing an integer
The value as an int, or None if value is None
InvalidParameterValue if the value does not represent an integer
Validate that the value represents a MAC address
name – Name of the argument
value – A string value representing a MAC address
The value as a normalized MAC address, or None if value is None
InvalidParameterValue if the value is not a valid MAC address
Validate that the value is a logical name
name – Name of the argument
value – A logical name string value
The value, or None if value is None
InvalidParameterValue if the value is not a valid logical name
Validates if at least one supplied validator passes
name – Name of the argument
value – A value
The value returned from the first successful validator
The error from the last validator when every validation fails
Validate a patch API operation
Return a validator function which validates the value with jsonschema
schema dict representing jsonschema to validate with
validator function which takes name and value arguments
Validate that the value is a string
name – Name of the argument
value – A string value
The string value, or None if value is None
InvalidParameterValue if the value is not a string
Validate and convert comma delimited string to a list.
name – Name of the argument
value – A comma separated string of values
A list of unique values (lower-cased), maintaining the same order, or None if value is None
InvalidParameterValue if the value is not a string
Return a validator function which checks the value is one of the types
types one or more types to use for the isinstance test
validator function which takes name and value arguments
Validate that the value is a UUID
name – Name of the argument
value – A UUID string value
The value, or None if value is None
InvalidParameterValue if the value is not a valid UUID
Validate that the value is a UUID or logical name
name – Name of the argument
value – A UUID or logical name string value
The value, or None if value is None
InvalidParameterValue if the value is not a valid UUID or logical name
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.