django-rest-params icon indicating copy to clipboard operation
django-rest-params copied to clipboard

Integers in list

Open dbinoj opened this issue 8 years ago • 0 comments

When I try to use integers in list, like page_size=(10, 20, 50, 100), django-rest-params compares it as string and throws an error. Is there any way to send a list/tuple of integers and specify that the param takes only integer? Right now TYPE of list assumes that it is of str type. The work around I'm using right now is page_size=("10", "20", "50", "100") defining the list as strings and type casting it in the view. It would be nice if we can specify the type of items in the list.

dbinoj avatar Feb 27 '17 16:02 dbinoj