diff --git a/src/pynwb/validation.py b/src/pynwb/validation.py index fee80adff..d2fb5cb17 100644 --- a/src/pynwb/validation.py +++ b/src/pynwb/validation.py @@ -5,7 +5,7 @@ from hdmf.spec import NamespaceCatalog from hdmf.build import BuildManager, TypeMap -from hdmf.utils import docval, getargs +from hdmf.utils import docval, getargs, AllowPositional from hdmf.backends.io import HDMFIO from hdmf.validate import ValidatorMap @@ -124,6 +124,7 @@ def get_cached_namespaces_to_validate(path: Optional[str] = None, returns="Validation errors in the file.", rtype=list, is_method=False, + allow_positional=AllowPositional.WARNING, ) def validate(**kwargs): """Validate NWB file(s) against a namespace or its cached namespaces.