Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

Unrelated String to Integer conversion error

$
0
0

I keep getting the following error:

{"error":"no implicit conversion of String into Integer"}

My API is setup as follows:

API url: https://my.api.mockaroo.com/getcontentlist/blog.json

schema "Content Item"
data = generate 9
data['category'] = params['category']
data

In my schema the category field is set up as a list with fixed values, "blog" being one of them.

This call works when my data = generate is 1, but fails on 9.

Am I doing something wrong?


Viewing all articles
Browse latest Browse all 2665

Trending Articles