persona-community-5/.pnpm-store/v3/files/5a/ade63a967f651c686fb40d03d6203b2252e41311a52804d909db70f0c17c6eda327727df0f22a329963148e80a441d636c1d34e6bf122feb26acf3879f1938
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
477 B
Plaintext

import type { Oas3Rule, Oas2Rule } from '../../visitors';
import type { UserContext } from '../../walk';
export const PathDeclarationMustExist: Oas3Rule | Oas2Rule = () => {
return {
PathItem(_path: object, { report, key }: UserContext) {
if ((key as string).indexOf('{}') !== -1) {
report({
message: 'Path parameter declarations must be non-empty. `{}` is invalid.',
location: { reportOnKey: true },
});
}
},
};
};