flask_parameters.inject_and_validate_query_params

flask_parameters.inject_and_validate_query_params(ignore_args: List[str] = [])

An extension of inject_query_params that also performs type checking of function arguments based on the signature of the function.

Parameters:

ignore_args (list[str] = []) – A list of argument names to ignore when checking for extra and missing arguments in the URL query parameters. E.g. if you have another decorator function injecting arguments.

Raises:
  • ArgsException – If any missing or extra arguments are supplied in the URL query parameters.

  • TypeCheckException – If any arguments fail the type check.