By default this rule is checking the mime types specified in consumes
and produces
properties in SwaggerObject
and OperationObject
. Verification happens against the mime-db
.
// swaggerlint.config.js
module.exports = {
rules: {
'only-valid-mime-types': true,
},
};