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