The only exceptions are bows, which last forever.
So, how can you repair your weapons in Dying Light 2?
The answer is: by installing weapon mods.

Every time you install a weapon mod into a weapon, it replenishes 50 durability.
This mod reduces the durability loss of using your weapon by a certain percentage.
Don’t get excited though.

you’re able to only delay the inevitable breaking of your weapon.