def _validate_doc_refs(self):
for namespace in self.api.namespaces.values():<EOL><INDENT>env = self._get_or_create_env(namespace.name)<EOL>for data_type in namespace.data_types:<EOL><INDENT>if data_type.doc:<EOL><INDENT>self._validate_doc_refs_helper(<EOL>env,<EOL>data_type.doc,<EOL>(data_type._ast_node.lineno + <NUM_LIT:1>, data_type._ast_node.path),<EOL>data_type)<EOL><DEDENT>for field in data_type.fields:<EOL><INDENT>if field.doc:<EOL><INDENT>self._validate_doc_refs_helper(<EOL>env,<EOL>field.doc,<EOL>(field._ast_node.lineno + <NUM_LIT:1>, field._ast_node.path),<EOL>data_type)<EOL><DEDENT><DEDENT><DEDENT>for route in namespace.routes:<EOL><INDENT>if route.doc:<EOL><INDENT>self._validate_doc_refs_helper(<EOL>env,<EOL>route.doc,<EOL>(route._ast_node.lineno + <NUM_LIT:1>, route._ast_node.path))<EOL><DEDENT><DEDENT><DEDENT>
Validates that all the documentation references across every docstring
in every spec are formatted properly, have valid values, and make
references to valid symbols.