It wouldn't work as a `switch`? It first checks `schema` and then `schema.enum`.