When providing a manifest JSON to the Save, Update, Correct services, there is a check for {{epaWaste = false}} and the presence of Federal Waste Codes. If Federal Waste Codes are present, there's a warning
{code:json} "warnings": [
{
"field": "Emanifest.waste.hazardousWaste.federalWasteCode",
"message": "Federal waste codes shall not be provided for non-hazardous waste"
}
]{code}
The warning is expected, which is good, however, the Federal Waste Codes are still saving as evidenced by retrieving the manifest via the GET service
JSON example to provide to the Save, Update or Correct service.
[^EM-3088.json]
Acceptance Criteria (x) When providing JSON to the Save, Update or Correct service, if {{"epaWaste": false}} is provided for a given waste line and a valid code under {{federalWasteCodes}} is provided, then the {{federalWasteCodes}} are ignored (not saved) and warning is returned
{code:json} "warnings": [
{
"field": "Emanifest.waste.hazardousWaste.federalWasteCodes",
"message": "Federal waste codes shall not be provided for non-hazardous waste"
}
]{code}
When providing a manifest JSON to the Save, Update, Correct services, there is a check for {{epaWaste = false}} and the presence of Federal Waste Codes. If Federal Waste Codes are present, there's a warning
{code:json} "warnings": [ { "field": "Emanifest.waste.hazardousWaste.federalWasteCode", "message": "Federal waste codes shall not be provided for non-hazardous waste" } ]{code}
The warning is expected, which is good, however, the Federal Waste Codes are still saving as evidenced by retrieving the manifest via the GET service
{code:json} "hazardousWaste": { "federalWasteCodes": [ { "code": "D001", "description": "IGNITABLE WASTE" } ], "tsdfStateWasteCodes": [], "generatorStateWasteCodes": [] },{code}
JSON example to provide to the Save, Update or Correct service.
[^EM-3088.json]
Acceptance Criteria
(x) When providing JSON to the Save, Update or Correct service, if {{"epaWaste": false}} is provided for a given waste line and a valid code under {{federalWasteCodes}} is provided, then the {{federalWasteCodes}} are ignored (not saved) and warning is returned
{code:json} "warnings": [ { "field": "Emanifest.waste.hazardousWaste.federalWasteCodes", "message": "Federal waste codes shall not be provided for non-hazardous waste" } ]{code}