Preheat oven to 375°F (190°C) and grease a casserole dish.
Heat olive oil in a large skillet over medium heat.
Add diced onion and cook until soft.
Stir in minced garlic and cook for about 30 seconds.
Add carrots, zucchini, and green beans and cook for about 5 minutes.
Stir in diced tomatoes, vegetable broth, Italian seasoning, oregano, salt, and black pepper.
Add kidney beans and cooked pasta and mix well.
Transfer the mixture into the prepared casserole dish.
Sprinkle mozzarella and parmesan cheese evenly on top.
Bake for 20–25 minutes until the cheese is melted and lightly golden.
Garnish with chopped parsley before serving.