文件操作 - no-server-trailing-slash.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoServerTrailingSlash = void 0; const NoServerTrailingSlash = () => { return { Server(server, { report, location }) { if (!server.url) return; if (server.url.endsWith('/') && server.url !== '/') { report({ message: 'Server `url` should not have a trailing slash.', location: location.child(['url']), }); } }, }; }; exports.NoServerTrailingSlash = NoServerTrailingSlash;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件