Restler specify minimum value of array elements

33 Views Asked by At

If I put this in my PhpDoc comment:

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

Then Restler takes that to mean it's an array of integers with at least one array element. Is there a way to ALSO say that the minimum values of the integers in the array is 1?

1

There are 1 best solutions below

0
Arul Kumaran On BEST ANSWER

Restler does not support specifying the minimum and maximum value of the integers in an array. You need to handle it inside the api method