persona-community-5/.pnpm-store/v3/files/f3/51723ac08d89851716d83087439ed92bd4119303b1fc797a13788bef5c21b0b89e390eac43f37a035a7573530b03e33683bce6f8226d3cb116faa92456d291
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

24 lines
783 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoEmptyServers = void 0;
const NoEmptyServers = () => {
return {
Root(root, { report, location }) {
if (!root.hasOwnProperty('servers')) {
report({
message: 'Servers must be present.',
location: location.child(['openapi']).key(),
});
return;
}
if (!Array.isArray(root.servers) || root.servers.length === 0) {
report({
message: 'Servers must be a non-empty array.',
location: location.child(['servers']).key(),
});
}
},
};
};
exports.NoEmptyServers = NoEmptyServers;