Restler 指定数组元素的最小值



如果我把它放在我的PhpDoc评论中:

* @param array $children The SQL idents of the children to add to the parent. {@type int} {@min 1}

然后 Restler 认为这意味着它是一个至少包含一个数组元素的整数数组。 有没有办法也说数组中整数的最小值是 1?

Restler 不支持指定数组中整数的最小值和最大值。你需要在 api 方法中处理它

最新更新