Skip to main content

require_exactly_one

Decorator to ensure that exactly one of the given keyword arguments is provided (not None).

Raises

ValidationError: If neither or both parameters are provided. Examples