Description
Create a submission and then close it using the DELETE submission end point. Then use the Delete by entity name endpoint specifying an entity that the submission had records for. The submission will now be open again, with validation run (either VALID or INVALID state).
Found this error when using the PCGL Clinical Submission fork, so double check if this behaviour is reproducible in lyric.
Expected Behaviour
If the DELETE by entity ID endpoint is used for a submission that is CLOSED, then the requrest should be rejected (HTTP 400).