Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 96dd825

Browse files
committed
Add fixture for markdown in type section.
1 parent 17378b0 commit 96dd825

File tree

5 files changed

+96
-80
lines changed

5 files changed

+96
-80
lines changed

v0.2.0/fixtures/api_data.js

Lines changed: 46 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ define({ "api": [
244244
"Parameter": [
245245
{
246246
"group": "Parameter",
247-
"type": "String",
247+
"type": "<p>String</p> ",
248248
"optional": false,
249249
"field": "param1",
250250
"description": "<p>No Group, automatically set Group to &quot;Parameter&quot;</p> "
@@ -253,14 +253,14 @@ define({ "api": [
253253
"Replace \"login\" with this text.": [
254254
{
255255
"group": "login",
256-
"type": "String",
256+
"type": "<p>String</p> ",
257257
"optional": false,
258258
"field": "param2",
259259
"description": "<p>Group &quot;login&quot;</p> "
260260
},
261261
{
262262
"group": "login",
263-
"type": "String",
263+
"type": "<p>String</p> ",
264264
"optional": false,
265265
"field": "param3",
266266
"defaultValue": "Default Value",
@@ -274,14 +274,14 @@ define({ "api": [
274274
"201 - Everything ok, replace \"201\" with this text.": [
275275
{
276276
"group": "201",
277-
"type": "String",
277+
"type": "<p>String</p> ",
278278
"optional": false,
279279
"field": "success2",
280280
"description": "<p>Group &quot;201&quot;</p> "
281281
},
282282
{
283283
"group": "201",
284-
"type": "String",
284+
"type": "<p>String</p> ",
285285
"optional": false,
286286
"field": "success3",
287287
"defaultValue": "Default Value",
@@ -291,7 +291,7 @@ define({ "api": [
291291
"Success 200": [
292292
{
293293
"group": "Success 200",
294-
"type": "String",
294+
"type": "<p>String</p> ",
295295
"optional": false,
296296
"field": "success1",
297297
"description": "<p>No Group, automatically set &quot;Success 200&quot;</p> "
@@ -304,7 +304,7 @@ define({ "api": [
304304
"400": [
305305
{
306306
"group": "400",
307-
"type": "String",
307+
"type": "<p>String</p> ",
308308
"optional": false,
309309
"field": "error2",
310310
"description": "<p>Undefined Group &quot;400&quot;</p> "
@@ -313,7 +313,7 @@ define({ "api": [
313313
"401 - Oh oh, replace \"401\" with this text": [
314314
{
315315
"group": "401",
316-
"type": "String",
316+
"type": "<p>String</p> ",
317317
"optional": false,
318318
"field": "error3",
319319
"description": "<p>Group &quot;401&quot;</p> "
@@ -322,7 +322,7 @@ define({ "api": [
322322
"Error 4xx": [
323323
{
324324
"group": "Error 4xx",
325-
"type": "String",
325+
"type": "<p>String</p> ",
326326
"optional": false,
327327
"field": "error1",
328328
"description": "<p>No Group automatically set &quot;Error 4xx&quot;</p> "
@@ -930,7 +930,7 @@ define({ "api": [
930930
"Parameter": [
931931
{
932932
"group": "Parameter",
933-
"type": "String",
933+
"type": "<p>String</p> ",
934934
"optional": false,
935935
"field": "param1",
936936
"description": "<p>This is a markdown <strong>apiParam</strong></p> <p>Separate line.</p> "
@@ -1045,83 +1045,83 @@ define({ "api": [
10451045
},
10461046
{
10471047
"group": "Parameter",
1048-
"type": "String",
1048+
"type": "<p>String</p> ",
10491049
"optional": false,
10501050
"field": "param9",
10511051
"description": "<p>Type, parameter and description.</p> "
10521052
},
10531053
{
10541054
"group": "Parameter",
1055-
"type": "String",
1055+
"type": "<p>String</p> ",
10561056
"optional": false,
10571057
"field": "param10",
10581058
"description": ""
10591059
},
10601060
{
10611061
"group": "Parameter",
1062-
"type": "String",
1062+
"type": "<p>String</p> ",
10631063
"optional": false,
10641064
"field": "param11",
10651065
"defaultValue": "Default Value",
10661066
"description": "<p>Type, parameter and default value.</p> "
10671067
},
10681068
{
10691069
"group": "Parameter",
1070-
"type": "String",
1070+
"type": "<p>String</p> ",
10711071
"optional": false,
10721072
"field": "param12",
10731073
"defaultValue": "Default Value",
10741074
"description": ""
10751075
},
10761076
{
10771077
"group": "Parameter",
1078-
"type": "String",
1078+
"type": "<p>String</p> ",
10791079
"optional": true,
10801080
"field": "param13",
10811081
"description": "<p>Type, optional parameter and description.</p> "
10821082
},
10831083
{
10841084
"group": "Parameter",
1085-
"type": "String",
1085+
"type": "<p>String</p> ",
10861086
"optional": true,
10871087
"field": "param14",
10881088
"description": ""
10891089
},
10901090
{
10911091
"group": "Parameter",
1092-
"type": "String",
1092+
"type": "<p>String</p> ",
10931093
"optional": true,
10941094
"field": "param15",
10951095
"defaultValue": "Default Value",
10961096
"description": "<p>Type, optional parameter, default value and description.</p> "
10971097
},
10981098
{
10991099
"group": "Parameter",
1100-
"type": "String",
1100+
"type": "<p>String</p> ",
11011101
"optional": true,
11021102
"field": "param26",
11031103
"defaultValue": "Default Value",
11041104
"description": ""
11051105
},
11061106
{
11071107
"group": "Parameter",
1108-
"type": "String",
1108+
"type": "<p>String</p> ",
11091109
"size": "4,8",
11101110
"optional": false,
11111111
"field": "param17",
11121112
"description": "<p>Type, size, parameter and description.</p> "
11131113
},
11141114
{
11151115
"group": "Parameter",
1116-
"type": "Number",
1116+
"type": "<p>Number</p> ",
11171117
"size": "1-3",
11181118
"optional": false,
11191119
"field": "param18",
11201120
"description": "<p>Type, size, parameter and description.</p> "
11211121
},
11221122
{
11231123
"group": "Parameter",
1124-
"type": "String",
1124+
"type": "<p>String</p> ",
11251125
"size": "4,8",
11261126
"optional": false,
11271127
"field": "param19",
@@ -1130,7 +1130,7 @@ define({ "api": [
11301130
},
11311131
{
11321132
"group": "Parameter",
1133-
"type": "Number",
1133+
"type": "<p>Number</p> ",
11341134
"size": "1-3",
11351135
"optional": false,
11361136
"field": "param20",
@@ -1139,7 +1139,7 @@ define({ "api": [
11391139
},
11401140
{
11411141
"group": "Parameter",
1142-
"type": "String",
1142+
"type": "<p>String</p> ",
11431143
"allowedValues": [
11441144
"\"value 1\""
11451145
],
@@ -1149,7 +1149,7 @@ define({ "api": [
11491149
},
11501150
{
11511151
"group": "Parameter",
1152-
"type": "String",
1152+
"type": "<p>String</p> ",
11531153
"allowedValues": [
11541154
"\"value 1\"",
11551155
"\"value 2\""
@@ -1160,7 +1160,7 @@ define({ "api": [
11601160
},
11611161
{
11621162
"group": "Parameter",
1163-
"type": "Number",
1163+
"type": "<p>Number</p> ",
11641164
"allowedValues": [
11651165
"4711"
11661166
],
@@ -1170,7 +1170,7 @@ define({ "api": [
11701170
},
11711171
{
11721172
"group": "Parameter",
1173-
"type": "Number",
1173+
"type": "<p>Number</p> ",
11741174
"allowedValues": [
11751175
"4711",
11761176
"4712"
@@ -1181,7 +1181,7 @@ define({ "api": [
11811181
},
11821182
{
11831183
"group": "Parameter",
1184-
"type": "String",
1184+
"type": "<p>String</p> ",
11851185
"size": "1,10",
11861186
"allowedValues": [
11871187
"\"value 1\""
@@ -1192,7 +1192,7 @@ define({ "api": [
11921192
},
11931193
{
11941194
"group": "Parameter",
1195-
"type": "Number",
1195+
"type": "<p>Number</p> ",
11961196
"size": "1-9999",
11971197
"allowedValues": [
11981198
"4711"
@@ -1203,7 +1203,7 @@ define({ "api": [
12031203
},
12041204
{
12051205
"group": "Parameter",
1206-
"type": "Number",
1206+
"type": "<p>Number</p> ",
12071207
"size": "1-9999",
12081208
"allowedValues": [
12091209
"4711",
@@ -1212,6 +1212,13 @@ define({ "api": [
12121212
"optional": false,
12131213
"field": "param28",
12141214
"description": "<p>Type, size, parameter and allowed list of values.</p> "
1215+
},
1216+
{
1217+
"group": "Parameter",
1218+
"type": "<p><a href=\"http://en.wikipedia.org/wiki/Data_type\">Custom</a></p> ",
1219+
"optional": false,
1220+
"field": "param29",
1221+
"description": "<p>Type with markdown link.</p> "
12151222
}
12161223
]
12171224
}
@@ -1237,36 +1244,36 @@ define({ "api": [
12371244
"Parameter": [
12381245
{
12391246
"group": "Parameter",
1240-
"type": "String",
1247+
"type": "<p>String</p> ",
12411248
"optional": false,
12421249
"field": "param0",
12431250
"description": "<p>This param is removed in 0.1.1.</p> "
12441251
},
12451252
{
12461253
"group": "Parameter",
1247-
"type": "String",
1254+
"type": "<p>String</p> ",
12481255
"optional": false,
12491256
"field": "param1",
12501257
"description": "<p>This is an old text.</p> "
12511258
},
12521259
{
12531260
"group": "Parameter",
1254-
"type": "String",
1261+
"type": "<p>String</p> ",
12551262
"optional": false,
12561263
"field": "param2",
12571264
"description": ""
12581265
},
12591266
{
12601267
"group": "Parameter",
1261-
"type": "String",
1268+
"type": "<p>String</p> ",
12621269
"optional": false,
12631270
"field": "param3",
12641271
"defaultValue": "Default Value",
12651272
"description": "<p>Parameter with type, description and default value.</p> "
12661273
},
12671274
{
12681275
"group": "Parameter",
1269-
"type": "String",
1276+
"type": "<p>String</p> ",
12701277
"optional": false,
12711278
"field": "param4",
12721279
"defaultValue": "Default Value",
@@ -1326,29 +1333,29 @@ define({ "api": [
13261333
},
13271334
{
13281335
"group": "Parameter",
1329-
"type": "String",
1336+
"type": "<p>String</p> ",
13301337
"optional": true,
13311338
"field": "param13",
13321339
"description": "<p>Optional Parameter with type and description.</p> "
13331340
},
13341341
{
13351342
"group": "Parameter",
1336-
"type": "String",
1343+
"type": "<p>String</p> ",
13371344
"optional": true,
13381345
"field": "param14",
13391346
"description": ""
13401347
},
13411348
{
13421349
"group": "Parameter",
1343-
"type": "String",
1350+
"type": "<p>String</p> ",
13441351
"optional": true,
13451352
"field": "param15",
13461353
"defaultValue": "Default Value",
13471354
"description": "<p>Optional Parameter with type, description and default value.</p> "
13481355
},
13491356
{
13501357
"group": "Parameter",
1351-
"type": "String",
1358+
"type": "<p>String</p> ",
13521359
"optional": true,
13531360
"field": "param16",
13541361
"defaultValue": "Default Value",
@@ -1385,7 +1392,7 @@ define({ "api": [
13851392
"Parameter": [
13861393
{
13871394
"group": "Parameter",
1388-
"type": "String",
1395+
"type": "<p>String</p> ",
13891396
"optional": false,
13901397
"field": "name",
13911398
"description": "<p>Fullname.</p> "

0 commit comments

Comments
 (0)