Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apidom-ls: fix all linting rules using apilintElementOrClass #3763

Closed
char0n opened this issue Jan 31, 2024 · 1 comment
Closed

apidom-ls: fix all linting rules using apilintElementOrClass #3763

char0n opened this issue Jan 31, 2024 · 1 comment

Comments

@char0n
Copy link
Member

char0n commented Jan 31, 2024

The apilintElementOrClass expects array of element of classes, not string as parameter. The goal of this issues is to change all rules containing similar notations:

  linterFunction: 'apilintElementOrClass',
  linterParams: ['parametersDefinitions'],

to

  linterFunction: 'apilintElementOrClass',
  linterParams: [['parametersDefinitions']],

There are real actual bugs associated with this issue, here is an example. Only the schemais used for actual comparison and boolean is ignored.

  linterFunction: 'apilintElementOrClass',
  linterParams: ['schema', 'boolean'],

This rule must have following notation:

  linterFunction: 'apilintElementOrClass',
  linterParams: [['schema', 'boolean']],
@char0n
Copy link
Member Author

char0n commented Jan 31, 2024

Addressed by #3764

@char0n char0n closed this as completed Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant