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

Using expectJSONTypes expects an Array. #54

Closed
asaf opened this issue Nov 29, 2013 · 1 comment
Closed

Using expectJSONTypes expects an Array. #54

asaf opened this issue Nov 29, 2013 · 1 comment

Comments

@asaf
Copy link

asaf commented Nov 29, 2013

Hey,

I'm hitting an API that returns an Object such as:

Users: {
paginationDetails: {...}
users: [item1,item2,item3,...]
}

While expectJSONTypes expects an array, is there a way to hook before expectJSONTypes is invoked or somehow feed it the inner array ?

Thanks.

@asaf
Copy link
Author

asaf commented Nov 30, 2013

Uh its ok, first param of expectJSON/Types makes the trick,

Thanks.

@asaf asaf closed this as completed Nov 30, 2013
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