Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Representer should bug when list is passed #6

Open
driescroons opened this issue Mar 15, 2022 · 0 comments
Open

@Representer should bug when list is passed #6

driescroons opened this issue Mar 15, 2022 · 0 comments

Comments

@driescroons
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant