Warm the olive oil over medium heat and cook the onion, carrots, and celery for 6 minutes until glassy and soft, without browning.
Stir the garlic, tomato paste, oregano, and basil in a cleared spot for 1 minute until the paste turns brick red, then mix through the vegetables.
Add the tomatoes, broth, potato, salt, and pepper, boil, then simmer gently uncovered for 8 minutes.
Stir in the zucchini and green beans and simmer 6 minutes until the potato is fork-tender.
Add both beans and the ditalini and simmer 8 to 9 minutes until the pasta has no chalky center.
Fold in the spinach and lemon juice for 2 minutes until wilted, taste for salt, and serve with basil and olive oil.