Use json schema for config validation