Panenco / papi

MIT License
2 stars 0 forks source link

@Representer should bug when list is passed #6

Open driescroons opened 2 years ago

driescroons commented 2 years ago

Noticed an issue in valcori when trying to return a list representation, with incorrect decorator on the controller fn, it returns a tupil to FE. Shouldn't this error?

Notice how it returns a tupil (assume getUserOrganizations returns [items, count]) image

Notice how it represents the tupil image

I feel like this should throw an error within the representer, since we have an arrayRepresenter. Otherwise arrayRepresenter is pretty stupid to have?