persona-community-5/.pnpm-store/v3/files/4b/a7266c2601bc1df2c1bf170a32930c4b47c112cf0cb8f36788369b61cf458c8166732cf99590449285f1f9539285779cc9aaff4ff247c646f16f3ce5bc948f
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

23 lines
852 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoSchemaTypeMismatch = void 0;
const NoSchemaTypeMismatch = () => {
return {
Schema(schema, { report, location }) {
if (schema.type === 'object' && schema.items) {
report({
message: "Schema type mismatch: 'object' type should not contain 'items' field.",
location: location.child('items'),
});
}
if (schema.type === 'array' && schema.properties) {
report({
message: "Schema type mismatch: 'array' type should not contain 'properties' field.",
location: location.child('properties'),
});
}
},
};
};
exports.NoSchemaTypeMismatch = NoSchemaTypeMismatch;