openapi-modifier
Version:
This package allows you to automate the process of modifying OpenAPI specifications by applying a set of predefined rules
9 lines (8 loc) • 345 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkIsHttpMethod = void 0;
const httpMethodsSet = new Set(['get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace']);
const checkIsHttpMethod = (method) => {
return httpMethodsSet.has(method);
};
exports.checkIsHttpMethod = checkIsHttpMethod;