文件操作 - no-criteria-xpath.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@redocly/openapi-core/src/rules/spot/no-criteria-xpath.ts
编辑文件内容
import type { Arazzo1Rule } from '../../visitors'; import type { UserContext } from '../../walk'; export const NoCriteriaXpath: Arazzo1Rule = () => { return { CriterionObject: { enter(criteria, { report, location }: UserContext) { if (!criteria.type) { return; } if (criteria?.type?.type === 'xpath' || criteria?.type === 'xpath') { report({ message: 'The `xpath` type criteria is not supported by Spot.', location: location.child(['type']), }); } }, }, }; };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件