feat(core): improve in-memory validation, FatturaPA detection coverage, and published type compatibility

This commit is contained in:
2026-04-16 20:30:56 +00:00
parent 55bee02a2e
commit 3f37f6538c
60 changed files with 5723 additions and 6678 deletions
+2 -1
View File
@@ -144,11 +144,12 @@ export function validateXml(
const validator = ValidatorFactory.createValidator(xml);
return validator.validate(level);
} catch (error) {
const errorMessage = error instanceof Error ? error.message : String(error);
return {
valid: false,
errors: [{
code: 'VAL-ERROR',
message: `Validation error: ${error.message}`
message: `Validation error: ${errorMessage}`
}],
level
};