Raids waves can spawn inside villages when forced to. To reproduce, place a villager and a bed on a completely isolated platform, give yourself the bad omen effect, and see the raid spawn on the platform. Since this didn't happen when raids were introduced in 1.14 snapshots, it's a bug.
Can confirm in 20w49a. To reproduce this issue, simply create a superflat world using the present, "The Void". Narrow the area down to 5x5 blocks and place a villager along with a bed. Give yourself the bad omen effect and you'll notice that the raid spawns within the "village". Commands to help reproduce:
Can confirm in 20w49a. To reproduce this issue, simply create a superflat world using the present, "The Void". Narrow the area down to 5x5 blocks and place a villager along with a bed. Give yourself the bad omen effect and you'll notice that the raid spawns within the "village". Commands to help reproduce: