@redocly/openapi-core
Version:
See https://github.com/Redocly/openapi-cli
17 lines (16 loc) • 551 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PathDeclarationMustExist = void 0;
const PathDeclarationMustExist = () => {
return {
PathItem(_path, { report, key }) {
if (key.indexOf('{}') !== -1) {
report({
message: 'Path parameter declarations must be non-empty. `{}` is invalid.',
location: { reportOnKey: true },
});
}
},
};
};
exports.PathDeclarationMustExist = PathDeclarationMustExist;