the report_file parameter of .validate() need to support also file-like object (io.StringIO/io.BytesIO in our case) that are not necessarily filesystem files.
Cases where we needed a full report of warnings and errors returned by the function, instead of raising just the 1st error.
So we modified .validate() adding the above mentioned backward-compatible error-handling and -reporting enhancements.
While using hl7api, we had 2 different needs:
report_file
parameter of .validate() need to support also file-like object (io.StringIO/io.BytesIO in our case) that are not necessarily filesystem files.So we modified .validate() adding the above mentioned backward-compatible error-handling and -reporting enhancements.
Co-authored-by: Massimiliano della Rovere massimiliano.dellarovere@dedalus.com Co-authored-by: Jorge García Roca jgarciaroca@dedalus.com