Fix invalid JSON schemata.
Define schemata at one place.