> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# validations

## require\_exactly\_one

```python theme={null}
def require_exactly_one(*param_names: str,
```

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**

@require\_exactly\_one("project\_id", "project\_name")
def list(\*, project\_id=None, project\_name=None):
...
