persona-community-5/.pnpm-store/v3/files/e1/1c54477ac55a4eda7e60e1593322eadf53bf47869f36c157f92748884c29bbb2f51bb76c1a1a546504d6f2202108a389c6ec71f2e158de59847fb4bb174af2
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

19 lines
705 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OperationIdUrlSafe = void 0;
// eslint-disable-next-line no-useless-escape
const validUrlSymbols = /^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/;
const OperationIdUrlSafe = () => {
return {
Operation(operation, { report, location }) {
if (operation.operationId && !validUrlSymbols.test(operation.operationId)) {
report({
message: 'Operation `operationId` should not have URL invalid characters.',
location: location.child(['operationId']),
});
}
},
};
};
exports.OperationIdUrlSafe = OperationIdUrlSafe;