Helper function for validating property values.
View aliases
Main aliases
`google.appengine.api.datastore.datastore_types.ValidateProperty`, `google.appengine.api.datastore.datastore_types.ValidateReadProperty`, `google.appengine.api.datastore_types.ValidateReadProperty`
google.appengine.api.datastore_types.ValidateProperty(
name, values, read_only=False
)
Args |
name
|
Name of the property this is for.
|
value
|
Value for the property as a Python native type.
|
read_only
|
Deprecated.
|
Raises |
BadPropertyError if the property name is invalid. BadValueError if the
property did not validate correctly or the value was an empty list. Other
exception types (like OverflowError ) if the property value does not meet
type-specific criteria.
|