The docs for the schema, e.g. https://nwb-schema.readthedocs.io/en/stable/format.html, currently use the schema from the TypeMap, i.e., from HDMF or PyNWB, not from the YAML files in the schema directory. This is problematic when there is an inconsistency between the released schema and the schema used in PyNWB / HDMF.
This issue is resolved by setting spec_default_type_map = hdmf.build.TypeMap(hdmf.spec.NamespaceCatalog()) or to another appropriate value in docs/conf_doc_autogen.py in the schema docs.
The docs for the schema, e.g. https://nwb-schema.readthedocs.io/en/stable/format.html, currently use the schema from the TypeMap, i.e., from HDMF or PyNWB, not from the YAML files in the schema directory. This is problematic when there is an inconsistency between the released schema and the schema used in PyNWB / HDMF.