persona-community-5/.pnpm-store/v3/files/7d/758a5ca27a23c186cd0c1c14877ab6cc357993435f3495d246f927f1813f9f9142c37bfe35b0269f307ce899005d6733fa08a906c068723da0c4f41c3ac7ca
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

38 lines
1.3 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequiredStringPropertyMissingMinLength = void 0;
const RequiredStringPropertyMissingMinLength = () => {
let skipSchemaProperties;
let requiredPropertiesSet;
return {
Schema: {
enter(schema) {
if (!schema?.required) {
skipSchemaProperties = true;
return;
}
requiredPropertiesSet = new Set(schema.required);
skipSchemaProperties = false;
},
SchemaProperties: {
skip() {
return skipSchemaProperties;
},
Schema: {
enter(schema, { key, location, report }) {
if (requiredPropertiesSet.has(key) && schema.type === 'string') {
if (!schema?.minLength) {
report({
message: 'Property minLength is required.',
location: location.key(),
});
}
}
},
},
},
},
};
};
exports.RequiredStringPropertyMissingMinLength = RequiredStringPropertyMissingMinLength;