@redocly/openapi-core
Version:
See https://github.com/Redocly/redocly-cli
13 lines • 420 B
JavaScript
export const NoPathTrailingSlash = () => {
return {
PathItem(_path, { report, key, rawLocation }) {
if (key.endsWith('/') && key !== '/') {
report({
message: `\`${key}\` should not have a trailing slash.`,
location: rawLocation.key(),
});
}
},
};
};
//# sourceMappingURL=no-path-trailing-slash.js.map