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

Fill one field with custom list values if another field has a specific custom list value

$
0
0

Thanks again. When I try to do this with json schema, does not seem to work.
I changed id, type, temp, etc. to app.id, app.status.type, app.data.temp etc and updated the codes.
The errors in preview I get is…

[{
  "app": {
    "id": 1,
    "status": {
      "type": "hello"
    },
    "data": {
      "temp": "error: Field 'app' not found",
      "temp_number": "error: Field 'app' not found"
    }
  }
}, {
  "app": {
    "id": 2,
    "status": {
      "type": "success"
    },
    "data": {
      "temp": "error: Field 'app' not found",
      "temp_number": "error: Field 'app' not found"
    }
  }
}

Viewing all articles
Browse latest Browse all 2665

Trending Articles