Go to a decent parts store & ask to look at door jamb switches, you'll find one that threads into the body correctly & only has one terminal, you'll see the brass tube looks completely wrong but what it does is slide in the steel nut that threads into the body so it adjusts to the needed height... You'll need to carefully bend the connector so it is 90 degrees like the original..
FWIW fancy switch but you can see the brass tube is to long, it will slide back into the steel nut when you close the door....