google.appengine.api.validation.AsValidator
Stay organized with collections
Save and categorize content based on your preferences.
Wrap various types as instances of a validator.
google.appengine.api.validation.AsValidator(
validator
)
Used to allow shorthand for common validator types. It
converts the following types to the following Validators:
- strings -> Regex
- type -> Type
- collection -> Options
- Validator -> Itself
Args |
validator
|
Object to wrap in a validator.
|
Returns |
|
Validator instance that wraps the given value.
|
Raises |
AttributeDefinitionError
|
If validator is not one of the above described
types.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[null,null,["Last updated 2025-06-16 UTC."],[],[]]