There is another way to do it, dump trucks use a rotary switch with a lever that turns a red light in the cab that indicates that the bucket is not seated down all the way, NAPA sells them place one on each door one lead to ground the other lead to the negative of the LED and hook the positive to the + of the LED, when either door is opened the LED is turned on, even if both doors are open all you have is a ground on the same line and only one wire to run, that's how I would do it and I do not have to worry about forgetting to turn light off.
Or you can use micro switches they are harder to adjust and easy to fail, the rotary switch is easier to adjust and is built for hard work, I'm not able to show you a picture, I am still learning to use the tablet still want to trow it out the window some times.
navegator