persona-community-5/.pnpm-store/v3/files/74/968c231bd49f20acc53b6d3614bef7ef070beb3c8ed3d80d0bc2e7e3c4e0d728e690a601b0f126899d8d1e6fe839e1d113f034aab554b9e33e1c6c6ee25737
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

31 lines
1.0 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OperationTagDefined = void 0;
const OperationTagDefined = () => {
let definedTags;
return {
Root(root) {
definedTags = new Set((root.tags ?? []).map((t) => t.name));
},
Operation(operation, { report, location }) {
if (operation?.tags) {
for (let i = 0; i < operation.tags.length; i++) {
if (!definedTags.has(operation.tags[i])) {
report({
message: `Operation tags should be defined in global tags.`,
location: location.child(['tags', i]),
});
}
}
}
else {
report({
message: `Operation tags should be defined`,
location: location.key(),
});
}
},
};
};
exports.OperationTagDefined = OperationTagDefined;