Indicates that attribute is expected to be a repeated value, ie,
a sequence. This adds additional validation over just Type(list)
in that it retains information about what can be stored in the list by
use of its constructor field.
Args
constructor
Type used for verifying elements of sequence attribute.
Check for missing fields or conflicts between fields.
Default behavior performs a simple None-check, but this can be overridden.
If the intent is to allow optional fields, then use the Optional validator
instead.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003e\u003ccode\u003eRepeated\u003c/code\u003e is a validator that ensures an attribute is a sequence (like a list) and verifies that all elements within the sequence conform to a specified type.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCheckFieldInitialized\u003c/code\u003e method is used to validate if any required fields are missing or if there are any conflicts among fields, raising a \u003ccode\u003eValidationError\u003c/code\u003e if problems are found.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetWarnings\u003c/code\u003e method identifies and returns non-fatal issues as warnings associated with a value being validated.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eToValue\u003c/code\u003e method simplifies a validated value into a standard, built-in type representation, or returns the value as is if no conversion is necessary.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eValidate\u003c/code\u003e method performs the primary validation, checking that a value is a list and that all items within it match the type designated by the constructor, throwing a \u003ccode\u003eValidationError\u003c/code\u003e if issues are found.\u003c/p\u003e\n"]]],[],null,["# google.appengine.api.validation.Repeated\n\n\u003cbr /\u003e\n\nRepeated field validator.\n\nInherits From: [`Validator`](../../../../google/appengine/api/validation/Validator), [`expected_type`](../../../../google/appengine/api/validation/Validator/expected_type) \n\n google.appengine.api.validation.Repeated(\n constructor, default=None\n )\n\nIndicates that attribute is expected to be a repeated value, ie,\na sequence. This adds additional validation over just `Type(list)`\nin that it retains information about what can be stored in the list by\nuse of its constructor field.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nChild Classes\n-------------\n\n[`class expected_type`](../../../../google/appengine/api/validation/Validator/expected_type)\n\nMethods\n-------\n\n### `CheckFieldInitialized`\n\n[View source](https://github.com/GoogleCloudPlatform/appengine-python-standard/tree/main/src/google/appengine/api/validation.py#L1400-L1411) \n\n CheckFieldInitialized(\n value, key, obj\n )\n\nCheck for missing fields or conflicts between fields.\n\nDefault behavior performs a simple `None`-check, but this can be overridden.\nIf the intent is to allow optional fields, then use the `Optional` validator\ninstead.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### `GetWarnings`\n\n[View source](https://github.com/GoogleCloudPlatform/appengine-python-standard/tree/main/src/google/appengine/api/validation.py#L722-L738) \n\n GetWarnings(\n value, key, obj\n )\n\nReturn any warnings on this attribute.\n\nValidates the value with an eye towards things that aren't fatal problems.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### `ToValue`\n\n[View source](https://github.com/GoogleCloudPlatform/appengine-python-standard/tree/main/src/google/appengine/api/validation.py#L707-L720) \n\n ToValue(\n value\n )\n\nConvert `value` to a simplified collection or basic type.\n\nSubclasses of `Validator` should override this method when the dumped\nrepresentation of `value` is not a simple `\u003ctype\u003e(value)` (e.g., a regex).\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### `Validate`\n\n[View source](https://github.com/GoogleCloudPlatform/appengine-python-standard/tree/main/src/google/appengine/api/validation.py#L1374-L1398) \n\n Validate(\n value, key\n )\n\nDo validation of sequence.\n\nValue must be a list and all elements must be of type `constructor`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### `__call__`\n\n[View source](https://github.com/GoogleCloudPlatform/appengine-python-standard/tree/main/src/google/appengine/api/validation.py#L673-L675) \n\n __call__(\n value, key='???'\n )\n\nMain interface to validator is call mechanism."]]