@redocly/openapi-core
Version:
See https://github.com/Redocly/openapi-cli
19 lines (18 loc) • 625 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PathNotIncludeQuery = void 0;
const PathNotIncludeQuery = () => {
return {
PathMap: {
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 },
});
}
},
}
};
};
exports.PathNotIncludeQuery = PathNotIncludeQuery;