문제

it looks like it is not possible to have array of dates as a parameter, like:

@param array $dates Dates array {@type date} {@from body}

Is there any way to make Restler to validate input of array of dates, for example:

{
   "dates": ["2013-01-01", "2013-01-02"]
}

Right now I am getting: Class 'date' not found in ...

도움이 되었습니까?

해결책

This works just fine with the latest in master branch! Just added the code to test it in Type class

Check it out here http://restler3.luracast.com/tests/param/explorer/index.html#!/type/createDates_post

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top