Try the Commands Troubleshooting and Help page if you get stuff with server errors.
Minecraft Vindicator NBT Data Tags
Using the summon command to spawn in a minecraft vindicator is simple, take the command and enter into chat and presto you have a vindicator. Vindicators are part of raids.
How to give vindicator Johnny behavior.
Setting Johnny:1 give the vindicator Johnny behavior, which is hostile to every mob except ghasts and illagers. Setting Johnny:0 prevents the vindicator having Johnny behavior, even if named Johnny.
/summon minecraft:vindicator ~ ~ ~ {Johnny:1}Illager Patrols
Setting Patrolling:1 and PatrolTarget coordinates will make illagers to move towards the patrol target.
/summon minecraft:vindicator ~ ~ ~ {Patrolling:1,PatrolTarget:{X:100,Y:65,Z:400}}
Add a patrol leader PatrolLeader:1 to allow for players to receive the Bad Omen status when slaying the patrol leader.
/summon minecraft:vindicator ~ ~ ~ {Patrolling:1,PatrolLeader:1,PatrolTarget:{X:100,Y:65,Z:400}}
Illager Raids
Unfortunately setting the raid tags doesn't seem to create a raid, maybe someone would be able to work these tags out.
Suggestions or found a bug
Leave me a comment/like on:Minecraft Versions Permalinks
If you're looking for a particular summon mob generator you can link to these specific versions of the command generator.
Detailed Mob Generators
Generators with pattern selectors
Other Mobs NBT Tag Data
Summon mob page with notes about custom mob options.