gaochengyi

Results 4 issues of gaochengyi

如题 ![image](https://user-images.githubusercontent.com/18210759/43310350-eca9f52a-91b9-11e8-9d06-602a5be6f8be.png)

改进

x-www-form-urlencoded 格式会将 null 值转化为空字符串,这对于后台判断存在性时会产生误导。 请问是否有这个意愿将参数格式变更为 json 呢?

I have the problem. I want to set some value to null. but it throw an error. `const rule = { transferDate: {type: 'string', required: false, allowEmpty: true}}` `let someData...

例如用户预约日期字段,用户原先选择了一个日期,保存成功。 后来用户想暂时移除该日期,于是删除了选择的日期,此时前端将该字段以 NULL 形式告知后端,该字段已被删除。 但此时 parameter 做校验时,即使标识了 `required = false, allowEmpty = true`,仍然会报错。