pub fn validate(payload: &Value, file: &str) -> Result<(), DefinitionError>
读一份定义:不是映射、缺字段、取值不对,当场报错。file 只用来说话。
file