persona-community-5/.pnpm-store/v3/files/27/49d995410c1392cdfce8317efd2b19e4878ae45f56acb255d516aa52cdea0eec419a03e91c3daf71a5c54d502772ae2331a061f064a4c93c80a13cb871ef77
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

16 lines
415 B
Plaintext

import type { Oas3Rule } from '../../visitors';
export const NoServerTrailingSlash: Oas3Rule = () => {
return {
Server(server, { report, location }) {
if (!server.url) return;
if (server.url.endsWith('/') && server.url !== '/') {
report({
message: 'Server `url` should not have a trailing slash.',
location: location.child(['url']),
});
}
},
};
};