【问题标题】:Restler specify minimum value of array elementsRestler 指定数组元素的最小值
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-17
      • 1970-01-01
      • 2021-12-21
      • 2014-07-21
      • 2017-01-29
      • 2018-04-04
      • 2020-09-20
      • 2014-12-19
      相关资源
      最近更新 更多