【发布时间】:2017-06-19 03:31:30
【问题描述】:
如果我把它放在我的 PhpDoc 评论中:
* @param array $children The SQL idents of the children to add to the parent. {@type int} {@min 1}
然后 Restler 认为它是一个至少有一个数组元素的整数数组。有没有办法也说数组中整数的最小值是 1?
【问题讨论】:
标签: restler
如果我把它放在我的 PhpDoc 评论中:
* @param array $children The SQL idents of the children to add to the parent. {@type int} {@min 1}
然后 Restler 认为它是一个至少有一个数组元素的整数数组。有没有办法也说数组中整数的最小值是 1?
【问题讨论】:
标签: restler
Restler 不支持指定数组中整数的最小值和最大值。需要在api方法里面处理
【讨论】: