import { PassthroughSchemaValidator } from '@dbis/integration-foundation';

const validator = new PassthroughSchemaValidator();

export async function validateIso20022Payload(
  messageType: string,
  payload: string
): Promise<{ valid: boolean; errors: string[] }> {
  return validator.validate(payload, messageType);
}
