cinder.api.validation package¶
Submodules¶
Module contents¶
Request Body validating middleware.
- schema(request_body_schema, min_version=None, max_version=None)¶
Register a schema to validate request body.
Registered schema will be used for validating request body just before API method executing.
- Parameters:
request_body_schema (dict) – a schema to validate request body
min_version – A string of two numerals. X.Y indicating the minimum version of the JSON-Schema to validate against.
max_version – A string of two numerals. X.Y indicating the maximum version of the JSON-Schema to validate against.