"use strict";
/**
 * ISO 20022 XSD validation interface.
 * Full XSD catalog validation is deferred; this hook enables server wiring and tests.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.PassthroughSchemaValidator = void 0;
/** Structural pre-check until official XSD bundles are mounted in services. */
class PassthroughSchemaValidator {
    async validate(xml, messageFamily) {
        const errors = [];
        if (!xml?.trim())
            errors.push('empty_xml');
        if (!messageFamily?.trim())
            errors.push('missing_message_family');
        if (xml && !xml.includes('<'))
            errors.push('not_xml');
        return { valid: errors.length === 0, errors };
    }
}
exports.PassthroughSchemaValidator = PassthroughSchemaValidator;
