The archetype goes back to stories that are at least twelve hundred years old; the Nihon Ryouiki for example has an account of a transformed fox marrying a human that's claimed to date back a couple centuries before the text itself, and other old texts have similar stories.