django-rest-params
django-rest-params copied to clipboard
Integers in list
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.