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

Creating a nested array of objects from a sample schema

$
0
0

This worked great. I am running into a small issue though.

page["banner"] = generate 1
page["banner"]["category"] = set "category[2]", values: ["banner", "home"]

Expected

"category": [
   "banner",
   "home"
]

Actual

"category": {
    "values": [
        "banner",
        "home"
    ]
}

What am I doing wrong?


Viewing all articles
Browse latest Browse all 2665

Trending Articles