UNPKG

@redocly/openapi-core

Version:

See https://github.com/Redocly/redocly-cli

22 lines (21 loc) 706 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoCriteriaXpath = void 0; const NoCriteriaXpath = () => { return { CriterionObject: { enter(criteria, { report, location }) { if (!criteria.type) { return; } if (criteria?.type?.type === 'xpath' || criteria?.type === 'xpath') { report({ message: 'The `xpath` type criteria is not supported by Respect.', location: location.child(['type']), }); } }, }, }; }; exports.NoCriteriaXpath = NoCriteriaXpath;