文件操作 - operation-operationId-url-safe.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OperationIdUrlSafe = void 0; // eslint-disable-next-line no-useless-escape const validUrlSymbols = /^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/; const OperationIdUrlSafe = () => { return { Operation(operation, { report, location }) { if (operation.operationId && !validUrlSymbols.test(operation.operationId)) { report({ message: 'Operation `operationId` should not have URL invalid characters.', location: location.child(['operationId']), }); } }, }; }; exports.OperationIdUrlSafe = OperationIdUrlSafe;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件