The mending Cantrip says:
This spell repairs a single break or tear in an object you touch, such as a broken chain link, two halves of a broken key, a torn cloak, or a leaking wineskin. As long as the break or tear is no larger than 1 foot in any dimension, you mend it, leaving no trace of the former damage. This spell can physically repair a magic item or construct, but the spell can't restore magic to such an object.
I see no reason why this shouldn’t be allowed to repair breaks in bones of a corpse, as corpses in 5E are objects. Is there something I’m missing as to why this wouldn’t be allowed or is my understanding correct?
I do understand that this may be a RAW vs RAI issue, but I’m asking for the RAW answer not the RAI answer.