tacker.api.validation package

Submodules

Module contents

Request Body validating middleware.

tacker.api.validation.query_schema(query_params_schema)

Register a schema to validate request query parameters.

Registered schema will be used for validating request query params just before API method executing.

Parameters:

query_params_schema – A dict, the JSON-Schema for validating the query parameters.

tacker.api.validation.schema(request_body_schema)

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