resources: convert old-style commands to rex on schema validation