Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 961 Bytes

cred-class-field-display-name-missing-oauth2.md

File metadata and controls

40 lines (30 loc) · 961 Bytes

cred-class-field-display-name-missing-oauth2

displayName field in credential class must mention OAuth2 if the credential is OAuth2.

📋 This rule is part of the plugin:n8n-nodes-base/credentials config.

Examples

❌ Example of incorrect code:

class MyTestOAuth2Api implements ICredentialType {
    name = 'myTestOAuth2Api';
    displayName = 'My Test API';
    documentationUrl = 'myTest';
    extends = [
        'oAuth2Api',
    ];
}

✅ Example of correct code:

class MyTestOAuth2Api implements ICredentialType {
    name = 'myTestOAuth2Api';
    displayName = 'My Test OAuth2 API';
    documentationUrl = 'myTest';
    extends = [
        'oAuth2Api',
    ];
}

Links