ZUGFeRD / mustangproject

Open Source Java e-Invoicing library, validator and tool (Factur-X/ZUGFeRD, UNCEFACT/CII XRechnung)
http://www.mustangproject.org
Apache License 2.0
201 stars 113 forks source link

Re-Added getValidationContext to ZUGFeRD Validator #394

Closed Sarenor closed 3 months ago

Sarenor commented 3 months ago

I'm not sure if it was an intended change to remove the Getter I added but with the ZUGFeRD validator no longer implementing the Validator Interface it'd still be nice to be able to get the context to easily get the ResultItems during processing.

jstaerk commented 3 months ago

I believe you had put the same function in pdfvalidator and xmlvalidator and I moved it to the validator class, from which both pdfvalidator and xmlvalidator inherit the function?

Sarenor commented 3 months ago

https://github.com/ZUGFeRD/mustangproject/pull/382/files To the Zugferd Validator, actually, since it's the file I would be calling instead of calling the PDFValidator directly.