Fix t/var/configs/*.json to use valid JSON syntax.
[dbsrgits/DBIx-Class-Fixtures.git] / t / var / configs / sample.json
1 {
2         "might_have": {
3             "fetch": 0
4         },
5         "has_many": {
6             "fetch": 0
7         },
8         "sets": [{
9             "class": "User",
10             "cond": { "photo_count": { "<": 5 } },
11             "quantity": 3,
12             "datetime_relative": today,
13             "fetch": [{ 
14                 "rel": comments,
15                 "cond": { "comments": { "!=": "faks" }},
16                 "quantity": 2
17             }]
18         }, {
19             "class": "User",
20             "cond": { "photo_count": { ">=": 5 } },
21             "quantity": 3
22         }, {
23             "class": "Video",
24             "quantity": 3
25         }, {
26             "class": "FeaturedVideo",
27             "quantity": 3
28         }],
29         "rules": {
30             "User": {
31                 "cond": { "video_count": { ">=": 5 } }
32             },
33             "Video": {
34                 "fetch": [{
35                     "rel": user_videos,
36                     "cond": { me."fk_user_id": "\= video.fk_owner_id" },
37                     "join": "video"
38                 }]
39             }
40         }
41 }