keystone.common.validation package¶
Submodules¶
Module contents¶
Request body validating middleware for OpenStack Identity resources.
-
keystone.common.validation.
lazy_validate
(request_body_schema, resource_to_validate)[source]¶ A non-decorator way to validate a request, to be used inline.
- Parameters
request_body_schema – a schema to validate the resource reference
resource_to_validate – dictionary to validate
- Raises
keystone.exception.ValidationError – if resource_to_validate is None. (see wrapper method below).
TypeError – at decoration time when the expected resource to validate isn’t found in the decorated method’s signature