USEPA / e-manifest

API services documentation and reference material for the e-Manifest hazardous waste tracking system
https://www.epa.gov/e-manifest
Creative Commons Zero v1.0 Universal
26 stars 22 forks source link

EM-2466 E_SystemError returned when missing designatedFacility paperSignatureInfo and status #1542

Closed e-manifest closed 1 year ago

e-manifest commented 1 year ago

If DataImage5Copy JSON is missing {{status}} and {{designatedFacility.paperSignatureInfo}}, a generic {{E_SystemError}} is returned. Add handling for this situation to return a proper error.

||Scenario|| || |Missing {{status}} and {{designatedFacility.paperSignatureInfo}} Error {{"code": "E_SystemError", "message": "System error occured",}}|[^EM-2466_both_missing.json]| |Contains {{status}}
Missing {{designatedFacility.paperSignatureInfo}} Error {noformat}"errors": [ { "message": "Mandatory Field is Not Provided", "field": "Emanifest.tsdf.paperSignatureInfo.signatureDate" }{noformat}|[^EM-2466_with_status.json]|

Acceptance Criteria
(x) If DataImage5Copy manifest is missing {{status}} and {{designatedFacility.paperSignatureInfo}}, then the below error is returned

{noformat} "message": "Mandatory Field is Not Provided", "field": "Emanifest.tsdf.paperSignatureInfo.signatureDate" } {noformat}