Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m11s
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has been cancelled
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 1m4s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 31s
OMNL reconcile anchor / Run omnl:reconcile and upload artifacts (push) Failing after 29s
Verify Deployment / Verify Deployment (push) Failing after 57s
Relay router, reserve system, oracle publisher, token-aggregation compliance middleware, and Monad deployment scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
793 B
JavaScript
22 lines
793 B
JavaScript
"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;
|