We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d639855 commit c485955Copy full SHA for c485955
packages/apidom-ls/src/services/validation/linter-functions.ts
@@ -1116,6 +1116,11 @@ export const standardLinterfunctions: FunctionItem[] = [
1116
{
1117
functionName: 'apilintReferenceNotUsed',
1118
function: (element) => {
1119
+ const elParent = element.parent?.parent?.parent?.parent;
1120
+ if (!elParent.hasKey || !elParent.hasKey('schemas')) {
1121
+ return true;
1122
+ }
1123
+
1124
const api = root(element);
1125
const isReferenceElement = (el: Element) => el.element === 'reference';
1126
const referenceElements = filter((el) => {
0 commit comments