Use json schema for config validation
gen