Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

mock-server returns empty object whenever it found Arrays/List<> at the root in the api response. #84

Open
rokumar1077 opened this issue Dec 14, 2020 · 0 comments

Comments

@rokumar1077
Copy link

Ex -
if the api response is
[
{"id":"someId", "name":"someName"},
{"id":"someId1", "name":"someName2"}
]
the mock-server returns empty object i.e {}

but if i make the api response
{
"temp":[
{"id":"someId", "name":"someName"},
{"id":"someId1", "name":"someName2"}
]
}
then it is working fine.

I extremely need to return list or array at the root of api response.

@rokumar1077 rokumar1077 changed the title mock-server returns empty whenever it found Arrays/List<> at the root in the api response. mock-server returns empty object whenever it found Arrays/List<> at the root in the api response. Dec 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant