Skip to content

Commit 0233cc1

Browse files
committed
Not tested extra cpp filter steps
1 parent d675607 commit 0233cc1

File tree

2 files changed

+116
-72
lines changed

2 files changed

+116
-72
lines changed

json/schema.json

Lines changed: 71 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,72 +6,85 @@
66
"namespace": "boilerplate::Example",
77
"cppFileName": "boilerplateExample",
88
"cssClass": "boilerplateExample",
9-
"metatype": "struct Data",
9+
"cpptype": "struct Data",
10+
"jsontype": "object",
1011
"properties": {
1112
"test": {
1213
"type": "integer",
13-
"metatype": "unsigned int",
14+
"cpptype": "unsigned int",
15+
"jsontype": "UInt",
1416
"minimum": 0,
1517
"maximum": 1,
1618
"default": 0
1719
},
1820
"id": {
1921
"type": "string",
20-
"metatype": "std::string"
22+
"cpptype": "std::string",
23+
"jsontype": "String"
2124
},
2225
"imp": {
2326
"description": "Impressions rock",
2427
"type": "array",
2528
"title": "Impression",
26-
"metatype": "std::vector<Impression>",
29+
"cpptype": "std::vector<Impression>",
30+
"jsontype": "object",
2731
"items": {
2832
"type": "object",
2933
"title": "Impression",
30-
"metatype" : "struct Impression",
34+
"cpptype" : "struct Impression",
35+
"jsontype" : "object",
3136
"properties": {
3237
"id": {
3338
"type": "string",
34-
"metatype": "std::string"
39+
"cpptype": "std::string",
40+
"jsontype": "String"
3541
},
3642
"banner": {
3743
"type": "object",
38-
"metatype" : "struct Banner",
44+
"cpptype" : "struct Banner",
45+
"jsontype" : "object",
3946
"metainfo": "not implemented",
4047
"scope": "required for banner impressions"
4148
},
4249
"audio": {
4350
"type": "object",
44-
"metatype" : "struct Audio",
51+
"cpptype" : "struct Audio",
52+
"jsontype" : "object",
4553
"metainfo": "not implemented",
4654
"scope": "required for audio impressions"
4755
},
4856
"video": {
4957
"type": "object",
50-
"metatype" : "struct Video",
58+
"cpptype" : "struct Video",
59+
"jsontype" : "object",
5160
"metainfo": "not implemented",
5261
"scope": "required for video impressions"
5362
},
5463
"native": {
5564
"title" : "Native",
56-
"metatype" : "struct Native",
65+
"cpptype" : "struct Native",
66+
"jsontype" : "object",
5767
"type": "object",
5868
"scope": "required for native impressions",
5969
"properties": {
6070
"request": {
6171
"type": "string",
62-
"metatype": "std::string"
72+
"cpptype": "std::string",
73+
"jsontype": "String"
6374
},
6475
"ver": {
6576
"type": "string",
66-
"metatype": "std::string",
77+
"cpptype": "std::string",
78+
"jsontype": "String",
6779
"default": "1.1"
6880
},
6981
"api": {
7082
"type": "array",
71-
"metatype": "std::vector<unsigned int>",
83+
"cpptype": "std::vector<unsigned int>",
84+
"jsontype": "object",
7285
"items": {
7386
"type": "integer",
74-
"metatype": "unsigned int"
87+
"cpptype": "unsigned int"
7588
}
7689
}
7790
},
@@ -82,55 +95,65 @@
8295
"pmp": {
8396
"title" : "PMP",
8497
"type": "object",
85-
"metatype": "struct PMP",
98+
"cpptype": "struct PMP",
99+
"jsontype": "object",
86100
"properties": {
87101
"private_auction": {
88102
"type": "integer",
89-
"metatype": "unsigned int",
103+
"cpptype": "unsigned int",
104+
"jsontype": "UInt",
90105
"minimum": 0,
91106
"maximum": 1,
92107
"default": 0
93108
},
94109
"deals": {
95110
"type": "array",
96-
"metatype": "std::vector<Deal>",
111+
"cpptype": "std::vector<Deal>",
112+
"jsontype": "object",
97113
"title": "Deal",
98114
"items": {
99115
"title": "Deal",
100116
"type": "object",
101-
"metatype": "struct Deal",
117+
"cpptype": "struct Deal",
118+
"jsontype": "object",
102119
"properties": {
103120
"id": {
104121
"type": "string",
105-
"metatype": "std::string"
122+
"cpptype": "std::string",
123+
"jsontype": "String"
106124
},
107125
"bidfloor": {
108126
"type": "number",
109-
"metatype": "double",
127+
"cpptype": "double",
128+
"jsontype": "Double",
110129
"minimum": 0.0,
111130
"default": 0.0
112131
},
113132
"bidfloorcur": {
114133
"type": "string",
115-
"metatype": "std::string",
134+
"cpptype": "std::string",
135+
"jsontype": "String",
116136
"enum": [
117137
"USD"
118138
]
119139
},
120140
"at": {
121141
"type": "integer",
122-
"metatype": "int"
142+
"cpptype": "int",
143+
"jsontype": "Int"
123144
},
124145
"wseat": {
125146
"type": "array",
126-
"metatype": "std::vector<std::string>",
147+
"cpptype": "std::vector<std::string>",
148+
"jsontype": "StringVector",
127149
"items": {
128150
"type": "string"
129151
}
130152
},
131153
"wadomain": {
132154
"type": "array",
133-
"metatype": "std::vector<std::string>",
155+
"cpptype": "std::vector<std::string>",
156+
"jsontype": "StringVector",
134157
"items": {
135158
"type": "string"
136159
}
@@ -146,69 +169,81 @@
146169
},
147170
"displaymanager": {
148171
"type": "string",
149-
"metatype": "std::string"
172+
"cpptype": "std::string",
173+
"jsontype": "String"
150174
},
151175
"displaymanagerver": {
152176
"type": "string",
153-
"metatype": "std::string"
177+
"cpptype": "std::string",
178+
"jsontype": "String"
154179
},
155180
"instl": {
156181
"type": "integer",
157-
"metatype": "unsigned int",
182+
"cpptype": "unsigned int",
183+
"jsontype": "UInt",
158184
"minimum": 0,
159185
"maximum": 1,
160186
"default": 0
161187
},
162188
"tagid": {
163189
"type": "string",
164-
"metatype": "std::string"
190+
"cpptype": "std::string",
191+
"jsontype": "String"
165192
},
166193
"bidfloor": {
167194
"type": "number",
168-
"metatype": "double",
195+
"cpptype": "double",
196+
"jsontype": "Double",
169197
"minimum": 0.0,
170198
"default": 0.0
171199
},
172200
"bidfloorcur": {
173201
"type": "string",
174-
"metatype": "std::string",
202+
"cpptype": "std::string",
203+
"jsontype": "String",
175204
"enum": [
176205
"USD"
177206
]
178207
},
179208
"clickbrowser": {
180209
"type": "integer",
181-
"metatype": "unsigned int",
210+
"cpptype": "unsigned int",
211+
"jsontype": "UInt",
182212
"minimum": 0,
183213
"maximum": 1,
184214
"default": 0
185215
},
186216
"secure": {
187217
"type": "integer",
188-
"metatype": "unsigned int",
218+
"cpptype": "unsigned int",
219+
"jsontype": "UInt",
189220
"minimum": 0,
190221
"maximum": 1,
191222
"default": 0
192223
},
193224
"iframabuster": {
194225
"type": "array",
195-
"metatype": "std::vector<std::string>",
226+
"cpptype": "std::vector<std::string>",
227+
"jsontype": "StringVector",
196228
"items": {
197229
"type": "string"
198230
}
199231
},
200232
"exp": {
201233
"type": "integer",
202-
"metatype": "int"
234+
"cpptype": "int",
235+
"jsontype": "Int"
203236
},
204237
"ext": {
205238
"title": "Extension",
206239
"type": "object",
207-
"metatype": "struct Extension",
240+
"cpptype": "struct Extension",
241+
"jsontype": "object",
208242
"properties": {
209243
"strictbannersize": {
210244
"type": "integer",
211-
"metatype": "unsigned int",
245+
"cpptype": "unsigned int",
246+
"jsontype": "UInt",
212247
"minimum": 0,
213248
"maximum": 1,
214249
"default": 0

0 commit comments

Comments
 (0)