persona-community-5/.pnpm-store/v3/files/03/15323fe2bb43c78db4bb851a050d67ab58da670448d2324481d034d19589e20ee081ae6e5c956cca62f6f545d23bf037ef1719c62d395543f941e6a960f481
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
878 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpecStrictRefs = void 0;
const ref_utils_1 = require("../../ref-utils");
const SpecStrictRefs = () => {
const nodesToSkip = [
'Schema',
'Response',
'Parameter',
'RequestBody',
'Example',
'Header',
'SecurityScheme',
'Link',
'Callback',
'PathItem',
];
return {
any(_node, { report, rawNode, rawLocation, type }) {
const shouldCheck = !nodesToSkip.includes(type.name);
if (shouldCheck && (0, ref_utils_1.isRef)(rawNode)) {
report({
message: 'Field $ref is not expected here.',
location: rawLocation.child('$ref').key(),
});
}
},
};
};
exports.SpecStrictRefs = SpecStrictRefs;