UNPKG

@redocly/openapi-core

Version:

See https://github.com/Redocly/redocly-cli

16 lines 615 B
export const PathNotIncludeQuery = () => { return { Paths: { PathItem(_operation, { report, key }) { 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 }, reference: 'https://redocly.com/docs/cli/rules/oas/path-not-include-query', }); } }, }, }; }; //# sourceMappingURL=path-not-include-query.js.map