persona-community-5/.pnpm-store/v3/files/f6/5f99021a32dfd32159c00e0ca78eced221dac690e9286b14637e74659dbbbe7d644764a43eaccdd22d65a022949d04280ca3b5f65c5595fa409561d2579233
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

18 lines
529 B
Plaintext

import type { Oas3Rule, Oas2Rule } from '../../visitors';
import type { UserContext } from '../../walk';
export const PathNotIncludeQuery: Oas3Rule | Oas2Rule = () => {
return {
Paths: {
PathItem(_operation: object, { report, key }: UserContext) {
if (key.toString().includes('?')) {
report({
message: `Don't put query string items in the path, they belong in parameters with \`in: query\`.`,
location: { reportOnKey: true },
});
}
},
},
};
};