mirrajabi / okhttp-json-mock

Mock your data for Okhttp and Retrofit in json format in just a few moves

Home Page:http://mirrajabi.nl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List of strings

andersonbadari opened this issue · comments

What about reading an array of something?
I mean, in the example there is a Observable<ArrayList<String>> getUserNumbers , but it didnt work. It give me the following error "Error opening asset api/v1/users/1/phonenumbers.json" (ive openned your project and tested in it)
How can this be fixed?
In order to make a "workaroud", I need to create a model object that contains this list, but this didnt feel 'right' to me.
thanks.

@blitzk01 Thanks for mentioning this,
it was a bug in the library. the interceptor was looking for a file named phonenumbers.json where the asset file name was phoneNumbers.json. so I removed the .toLowerCase() part and now its all good.
Use version 1.1.1 and this problem will be fixed.