Heat olive oil in a large pot over medium heat.
Add diced onion and cook until translucent, about 5 minutes.
Stir in minced garlic and cook for an additional minute.
Add diced carrots and celery, cooking for another 5 minutes.
Incorporate the diced zucchini and green beans, cooking for another 5 minutes.
Pour in the vegetable broth and diced tomatoes, followed by Italian herbs, salt, and pepper.
Bring the soup to a boil, then reduce the heat to a simmer.
Add the small pasta and cook until al dente, about 8-10 minutes.
Stir in the chopped spinach or kale, cooking just until wilted.
Adjust seasoning if necessary and serve hot, garnished with Parmesan cheese if desired.