UNPKG

swagger-routes-express

Version:

Connect Express route controllers to restful paths using a Swagger 2 or OpenAPI 3 definition file

5 lines (3 loc) 174 B
const normaliseOperationId = (operationId, apiSeparator = '_') => operationId ? operationId.replace(/\//g, apiSeparator) : undefined module.exports = normaliseOperationId