It raises issues of sovereignty, but one could imagine a scenario where Italy subsidizes a small number of fighters for San Marino, who in return agree to cooperate in air defense of Italian airspace. I'm not sure why either side would agree to it, though. I thought maybe as part of an EU force, but apparently San Marino never joined the EU.