Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 676 Bytes

File metadata and controls

29 lines (24 loc) · 676 Bytes

object-prop-casing rule

By default this rule is checking for all properties of SchemaObject with type: 'object' to be camel cased. Optionally you can specify one of other supported casing names camel | constant | snake | kebab | pascal.

// swaggerlint.config.js
module.exports = {
    rules: {
        'object-prop-casing': ['snake'],
    },
};

This rule can be configured to ignore specified property names.

// swaggerlint.config.js
module.exports = {
    rules: {
        'object-prop-casing': [
            'camel',
            {
                ignore: ['ODD', 'cAsinG'], // parameter names to ignore
            },
        ],
    },
};