# validate_op_namespace

> **Function** in `langgraph.store`

📖 [View in docs](https://reference.langchain.com/python/langgraph.store/base/validate_op_namespace)

Validate the namespace labels an op carries before a store executes it.

`BaseStore` methods check labels before batching, but ops passed directly to
`batch`/`abatch` skip those methods. Stores that serialize namespaces as
delimited text should call this for every op they execute, so a label such
as `"foo.bar"` cannot address the namespace `("foo", "bar")`.

## Signature

```python
validate_op_namespace(
    op: Op,
) -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/3521f08e21a7d89c28331191374bc85c11ecb6e2/libs/checkpoint/langgraph/store/base/__init__.py#L1346)