pattern aplica un regex a valores string.
{"type": "string", "pattern": "^[a-z0-9-]+$"}
Úsalo para slugs e identificadores.