From 1.11, then user create custom spawners for husk or stray (/setblock ~0 ~1 ~0 minecraft:mob_spawner 0 replace {SpawnData:{id:"minecraft:husk"}}), spawners spawn that mobs only under the clear sky (can't spawn in caves, structures, etc).
It's broke using that spawners in custom maps and adventures.