@redocly/openapi-core
Version:
See https://github.com/Redocly/redocly-cli
14 lines • 533 B
JavaScript
export 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 },
reference: 'https://redocly.com/docs/cli/rules/oas/path-declaration-must-exist',
});
}
},
};
};
//# sourceMappingURL=path-declaration-must-exist.js.map