google.appengine.api.datastore_types.ValidateProperty

Helper function for validating property values.

name Name of the property this is for.
value Value for the property as a Python native type.
read_only Deprecated.

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.