rapipdf 2.1.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -14
- package/dist/chunks/generate-BQLGaRvK.js +386 -0
- package/dist/chunks/generate-BQLGaRvK.js.LICENSE.txt +224 -0
- package/dist/chunks/localize-CRvDVkIz.js +8 -0
- package/dist/node.js +13096 -0
- package/dist/node.js.LICENSE.txt +195 -0
- package/dist/rapipdf-min.js +352 -90
- package/dist/rapipdf-min.js.LICENSE.txt +224 -0
- package/dist/rapipdf.js +69 -0
- package/package.json +58 -52
- package/src/node.d.ts +82 -0
- package/src/rapipdf.d.ts +50 -0
- package/.babelrc +0 -11
- package/.eslintrc +0 -28
- package/dist/index.html +0 -48
- package/dist/index.html.gz +0 -0
- package/dist/rapipdf-min.js.gz +0 -0
- package/dist/rapipdf-min.js.map +0 -1
- package/dist/rapipdf-min.js.map.gz +0 -0
- package/dist/report.html +0 -67
- package/docs/examples/example1.html +0 -68
- package/docs/examples/list.html +0 -27
- package/docs/examples/rapidoc-regular.woff2 +0 -0
- package/docs/examples/rapidoc-semi-bold.woff2 +0 -0
- package/docs/examples/roboto-mono-bold.woff2 +0 -0
- package/docs/examples/roboto-mono-regular.woff2 +0 -0
- package/docs/highlight/CHANGES.md +0 -1803
- package/docs/highlight/LICENSE +0 -24
- package/docs/highlight/README.md +0 -188
- package/docs/highlight/README.ru.md +0 -142
- package/docs/highlight/highlight.pack.js +0 -2
- package/docs/highlight/styles/a11y-dark.css +0 -99
- package/docs/highlight/styles/a11y-light.css +0 -99
- package/docs/highlight/styles/agate.css +0 -108
- package/docs/highlight/styles/an-old-hope.css +0 -89
- package/docs/highlight/styles/androidstudio.css +0 -66
- package/docs/highlight/styles/arduino-light.css +0 -88
- package/docs/highlight/styles/arta.css +0 -73
- package/docs/highlight/styles/ascetic.css +0 -45
- package/docs/highlight/styles/atelier-cave-dark.css +0 -83
- package/docs/highlight/styles/atelier-cave-light.css +0 -85
- package/docs/highlight/styles/atelier-dune-dark.css +0 -69
- package/docs/highlight/styles/atelier-dune-light.css +0 -69
- package/docs/highlight/styles/atelier-estuary-dark.css +0 -84
- package/docs/highlight/styles/atelier-estuary-light.css +0 -84
- package/docs/highlight/styles/atelier-forest-dark.css +0 -69
- package/docs/highlight/styles/atelier-forest-light.css +0 -69
- package/docs/highlight/styles/atelier-heath-dark.css +0 -69
- package/docs/highlight/styles/atelier-heath-light.css +0 -69
- package/docs/highlight/styles/atelier-lakeside-dark.css +0 -69
- package/docs/highlight/styles/atelier-lakeside-light.css +0 -69
- package/docs/highlight/styles/atelier-plateau-dark.css +0 -84
- package/docs/highlight/styles/atelier-plateau-light.css +0 -84
- package/docs/highlight/styles/atelier-savanna-dark.css +0 -84
- package/docs/highlight/styles/atelier-savanna-light.css +0 -84
- package/docs/highlight/styles/atelier-seaside-dark.css +0 -69
- package/docs/highlight/styles/atelier-seaside-light.css +0 -69
- package/docs/highlight/styles/atelier-sulphurpool-dark.css +0 -69
- package/docs/highlight/styles/atelier-sulphurpool-light.css +0 -69
- package/docs/highlight/styles/atom-one-dark-reasonable.css +0 -77
- package/docs/highlight/styles/atom-one-dark.css +0 -96
- package/docs/highlight/styles/atom-one-light.css +0 -96
- package/docs/highlight/styles/brown-paper.css +0 -64
- package/docs/highlight/styles/brown-papersq.png +0 -0
- package/docs/highlight/styles/codepen-embed.css +0 -60
- package/docs/highlight/styles/color-brewer.css +0 -71
- package/docs/highlight/styles/darcula.css +0 -77
- package/docs/highlight/styles/dark.css +0 -63
- package/docs/highlight/styles/darkula.css +0 -6
- package/docs/highlight/styles/default.css +0 -99
- package/docs/highlight/styles/docco.css +0 -97
- package/docs/highlight/styles/dracula.css +0 -76
- package/docs/highlight/styles/far.css +0 -71
- package/docs/highlight/styles/foundation.css +0 -88
- package/docs/highlight/styles/github-gist.css +0 -71
- package/docs/highlight/styles/github.css +0 -99
- package/docs/highlight/styles/gml.css +0 -78
- package/docs/highlight/styles/googlecode.css +0 -89
- package/docs/highlight/styles/grayscale.css +0 -101
- package/docs/highlight/styles/gruvbox-dark.css +0 -108
- package/docs/highlight/styles/gruvbox-light.css +0 -108
- package/docs/highlight/styles/hopscotch.css +0 -83
- package/docs/highlight/styles/hybrid.css +0 -102
- package/docs/highlight/styles/idea.css +0 -97
- package/docs/highlight/styles/ir-black.css +0 -73
- package/docs/highlight/styles/isbl-editor-dark.css +0 -112
- package/docs/highlight/styles/isbl-editor-light.css +0 -112
- package/docs/highlight/styles/kimbie.dark.css +0 -74
- package/docs/highlight/styles/kimbie.light.css +0 -74
- package/docs/highlight/styles/lightfair.css +0 -87
- package/docs/highlight/styles/magula.css +0 -70
- package/docs/highlight/styles/mono-blue.css +0 -59
- package/docs/highlight/styles/monokai-sublime.css +0 -83
- package/docs/highlight/styles/monokai.css +0 -70
- package/docs/highlight/styles/nord.css +0 -309
- package/docs/highlight/styles/obsidian.css +0 -88
- package/docs/highlight/styles/ocean.css +0 -74
- package/docs/highlight/styles/paraiso-dark.css +0 -72
- package/docs/highlight/styles/paraiso-light.css +0 -72
- package/docs/highlight/styles/pojoaque.css +0 -83
- package/docs/highlight/styles/pojoaque.jpg +0 -0
- package/docs/highlight/styles/purebasic.css +0 -96
- package/docs/highlight/styles/qtcreator_dark.css +0 -83
- package/docs/highlight/styles/qtcreator_light.css +0 -83
- package/docs/highlight/styles/railscasts.css +0 -106
- package/docs/highlight/styles/rainbow.css +0 -85
- package/docs/highlight/styles/routeros.css +0 -108
- package/docs/highlight/styles/school-book.css +0 -72
- package/docs/highlight/styles/school-book.png +0 -0
- package/docs/highlight/styles/shades-of-purple.css +0 -97
- package/docs/highlight/styles/solarized-dark.css +0 -84
- package/docs/highlight/styles/solarized-light.css +0 -84
- package/docs/highlight/styles/sunburst.css +0 -102
- package/docs/highlight/styles/tomorrow-night-blue.css +0 -75
- package/docs/highlight/styles/tomorrow-night-bright.css +0 -74
- package/docs/highlight/styles/tomorrow-night-eighties.css +0 -74
- package/docs/highlight/styles/tomorrow-night.css +0 -75
- package/docs/highlight/styles/tomorrow.css +0 -72
- package/docs/highlight/styles/vs.css +0 -68
- package/docs/highlight/styles/vs2015.css +0 -115
- package/docs/highlight/styles/xcode.css +0 -104
- package/docs/highlight/styles/xt256.css +0 -92
- package/docs/highlight/styles/zenburn.css +0 -80
- package/docs/images/console.svg +0 -12
- package/docs/images/dark_ss.png +0 -0
- package/docs/images/easy.svg +0 -14
- package/docs/images/fast.svg +0 -8
- package/docs/images/gears.svg +0 -11
- package/docs/images/light_ss.png +0 -0
- package/docs/images/logo.png +0 -0
- package/docs/images/love.svg +0 -8
- package/docs/images/mask.svg +0 -16
- package/docs/images/mouse.svg +0 -7
- package/docs/images/pdf_sample1.png +0 -0
- package/docs/images/pdf_sample2.png +0 -0
- package/docs/images/webcomponent.svg +0 -13
- package/docs/index.css +0 -254
- package/docs/index.html +0 -376
- package/docs/rapipdf-min.js +0 -95
- package/docs/specs/allof-primitives.json +0 -80
- package/docs/specs/allof.json +0 -73
- package/docs/specs/anyof.json +0 -84
- package/docs/specs/basic.json +0 -75
- package/docs/specs/bitbucket.json +0 -12916
- package/docs/specs/data-types.yaml +0 -168
- package/docs/specs/gcloud.json +0 -1347
- package/docs/specs/no-server.json +0 -1
- package/docs/specs/oneof.json +0 -64
- package/docs/specs/petstore.json +0 -1042
- package/docs/specs/petstore_extended.yaml +0 -889
- package/docs/specs/temp.json +0 -53
- package/docs/specs/test-specs/large-models.json +0 -5998
- package/docs/specs/test-specs/long-descriptions.json +0 -5443
- package/docs/specs/test-specs/long-paths.json +0 -9562
- package/docs/specs/test-specs/oneof-allof-nested.yaml +0 -105
- package/docs/specs/test-specs/partial-spec-main.json +0 -29
- package/docs/specs/test-specs/partial.json +0 -17
- package/docs/specs/test-specs/petstore_complex_request.yaml +0 -335
- package/docs/specs/test-specs/petstore_experimental.yaml +0 -167
- package/docs/specs/test-specs/xxx-of-with-primitives-and-recursive-model.yaml +0 -952
- package/docs/welcome.html +0 -369
- package/index.html +0 -48
- package/logo.png +0 -0
- package/src/index.js +0 -3
- package/src/markdown.js +0 -120
- package/src/object-tree-gen.js +0 -370
- package/src/pdf-gen.js +0 -113
- package/src/pdf-parts-gen.js +0 -488
- package/src/rapipdf.js +0 -246
- package/src/spec-parser.js +0 -162
- package/src/table-layouts.js +0 -35
- package/src/vfs_fonts.js +0 -7
- package/webpack.config.js +0 -118
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"swagger": "2.0",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "all-of Models",
|
|
5
|
-
"description": "Spec containing model composition using all-of. Checkout the model definition under the RESPONSE section"
|
|
6
|
-
},
|
|
7
|
-
"consumes": [
|
|
8
|
-
"application/json"
|
|
9
|
-
],
|
|
10
|
-
"produces": [
|
|
11
|
-
"application/json"
|
|
12
|
-
],
|
|
13
|
-
"paths": {
|
|
14
|
-
"/api/employee": {
|
|
15
|
-
"get": {
|
|
16
|
-
"tags": [
|
|
17
|
-
"Employee Details"
|
|
18
|
-
],
|
|
19
|
-
"summary": "List of employees",
|
|
20
|
-
"operationId": "empDetails",
|
|
21
|
-
"responses": {
|
|
22
|
-
"200": {
|
|
23
|
-
"description": "Checkout the model tab to view object schemas defined using all-of",
|
|
24
|
-
"schema": {
|
|
25
|
-
"type": "array",
|
|
26
|
-
"items": {
|
|
27
|
-
"$ref": "#/definitions/employee"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"definitions": {
|
|
36
|
-
"employee": {
|
|
37
|
-
"type": "object",
|
|
38
|
-
"additionalProperties": false,
|
|
39
|
-
"properties": {
|
|
40
|
-
"Id": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"description": "Employee ID"
|
|
43
|
-
},
|
|
44
|
-
"Employee": {
|
|
45
|
-
"description": "Employee Details (Worker or Manager)",
|
|
46
|
-
"allOf": [
|
|
47
|
-
{ "$ref": "#/definitions/name"},
|
|
48
|
-
{ "$ref": "#/definitions/job"},
|
|
49
|
-
{ "$ref": "#/definitions/dob"},
|
|
50
|
-
{ "$ref": "#/definitions/salary"}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"name": {
|
|
56
|
-
"type": "object",
|
|
57
|
-
"additionalProperties": false,
|
|
58
|
-
"properties": {
|
|
59
|
-
"firstName": { "type": "string", "description": "First name" },
|
|
60
|
-
"lastName": { "type": "string", "description": "Last Name" }
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"job": {
|
|
64
|
-
"type": "object",
|
|
65
|
-
"additionalProperties": false,
|
|
66
|
-
"properties": {
|
|
67
|
-
"jobTitle": { "type": "string", "description": "Job title" },
|
|
68
|
-
"department": { "type": "string", "description": "Department name"}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"dob": {"type": "string", "format": "date", "description": "Date of birth"},
|
|
72
|
-
"salary": {"type": "number", "description": "Salary per annum"}
|
|
73
|
-
},
|
|
74
|
-
"tags": [
|
|
75
|
-
{
|
|
76
|
-
"name": "Employee Details",
|
|
77
|
-
"description": "Employee Details"
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
}
|
package/docs/specs/allof.json
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"swagger": "2.0",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "all-of Models",
|
|
5
|
-
"description": "Spec containing model composition using all-of. Checkout the model definition under the RESPONSE section"
|
|
6
|
-
},
|
|
7
|
-
"consumes": [ "application/json"],
|
|
8
|
-
"produces": [ "application/json"],
|
|
9
|
-
"paths": {
|
|
10
|
-
"/api/employee": {
|
|
11
|
-
"get": {
|
|
12
|
-
"tags": [
|
|
13
|
-
"Employee Details"
|
|
14
|
-
],
|
|
15
|
-
"summary": "List of employees",
|
|
16
|
-
"operationId": "empDetails",
|
|
17
|
-
"responses": {
|
|
18
|
-
"200": {
|
|
19
|
-
"description": "Checkout the model tab to view object schemas defined using all-of",
|
|
20
|
-
"schema": {
|
|
21
|
-
"type": "array",
|
|
22
|
-
"items": {
|
|
23
|
-
"$ref": "#/definitions/employee"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"definitions": {
|
|
32
|
-
"employee": {
|
|
33
|
-
"type": "object",
|
|
34
|
-
"additionalProperties": false,
|
|
35
|
-
"properties": {
|
|
36
|
-
"Id": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "Employee ID"
|
|
39
|
-
},
|
|
40
|
-
"Employee": {
|
|
41
|
-
"description": "Employee Details (Worker or Manager)",
|
|
42
|
-
"allOf": [
|
|
43
|
-
{ "$ref": "#/definitions/name"},
|
|
44
|
-
{ "$ref": "#/definitions/job"}
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"name": {
|
|
50
|
-
"type": "object",
|
|
51
|
-
"additionalProperties": false,
|
|
52
|
-
"properties": {
|
|
53
|
-
"firstName": { "type": "string", "description": "First name" },
|
|
54
|
-
"lastName": { "type": "string", "description": "Last Name" }
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"job": {
|
|
58
|
-
"type": "object",
|
|
59
|
-
"additionalProperties": false,
|
|
60
|
-
"properties": {
|
|
61
|
-
"jobTitle": { "type": "string", "description": "Job title" },
|
|
62
|
-
"department": { "type": "string", "description": "Department name"},
|
|
63
|
-
"salary": {"type": "number", "description": "Salary per annum"}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"tags": [
|
|
68
|
-
{
|
|
69
|
-
"name": "Employee Details",
|
|
70
|
-
"description": "Employee Details"
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
package/docs/specs/anyof.json
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"swagger": "2.0",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "any-of Models",
|
|
5
|
-
"description": "Spec containing model composition using any-of. Checkout the model definition under the RESPONSE section"
|
|
6
|
-
},
|
|
7
|
-
"consumes": [ "application/json"],
|
|
8
|
-
"produces": [ "application/json"],
|
|
9
|
-
"paths": {
|
|
10
|
-
"/api/employee": {
|
|
11
|
-
"get": {
|
|
12
|
-
"tags": [ "Employee Details"],
|
|
13
|
-
"summary": "List of employees",
|
|
14
|
-
"operationId": "empDetails",
|
|
15
|
-
"responses": {
|
|
16
|
-
"200": {
|
|
17
|
-
"description": "Checkout the model tab to view object schemas defined using any-of",
|
|
18
|
-
"schema": {
|
|
19
|
-
"type": "array",
|
|
20
|
-
"items": {
|
|
21
|
-
"$ref": "#/definitions/employee"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"definitions": {
|
|
30
|
-
"employee": {
|
|
31
|
-
"type": "object",
|
|
32
|
-
"additionalProperties": false,
|
|
33
|
-
"properties": {
|
|
34
|
-
"Id": { "type": "string", "description": "Employee ID" },
|
|
35
|
-
"Employee": {
|
|
36
|
-
"description": "Employee Details (Worker or Manager)",
|
|
37
|
-
"anyOf": [
|
|
38
|
-
{ "$ref": "#/definitions/name"},
|
|
39
|
-
{ "$ref": "#/definitions/job"}
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"name": {
|
|
45
|
-
"type": "object",
|
|
46
|
-
"additionalProperties": false,
|
|
47
|
-
"properties": {
|
|
48
|
-
"firstName": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "First name"
|
|
51
|
-
},
|
|
52
|
-
"lastName": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"description": "Last Name"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"job": {
|
|
59
|
-
"type": "object",
|
|
60
|
-
"additionalProperties": false,
|
|
61
|
-
"properties": {
|
|
62
|
-
"jobTitle": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"description": "Job title"
|
|
65
|
-
},
|
|
66
|
-
"department": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"description": "Department name"
|
|
69
|
-
},
|
|
70
|
-
"salary": {
|
|
71
|
-
"type": "number",
|
|
72
|
-
"description": "Salary per annum"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
"tags": [
|
|
79
|
-
{
|
|
80
|
-
"name": "Employee Details",
|
|
81
|
-
"description": "Employee Details"
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
}
|
package/docs/specs/basic.json
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"swagger": "2.0",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "Basic Spec",
|
|
5
|
-
"description": ""
|
|
6
|
-
},
|
|
7
|
-
"consumes": [ "application/json"],
|
|
8
|
-
"produces": [ "application/json"],
|
|
9
|
-
"paths": {
|
|
10
|
-
"/api/employee": {
|
|
11
|
-
"get": {
|
|
12
|
-
"tags": ["Employee Details"],
|
|
13
|
-
"summary": "List of employees",
|
|
14
|
-
"operationId": "empDetails",
|
|
15
|
-
"parameters": [
|
|
16
|
-
{
|
|
17
|
-
"description": "Set a limit to number of items returned",
|
|
18
|
-
"in": "query",
|
|
19
|
-
"name": "limit",
|
|
20
|
-
"required": false,
|
|
21
|
-
"type": "integer",
|
|
22
|
-
"default": 100,
|
|
23
|
-
"example": 50,
|
|
24
|
-
"minimum": 1,
|
|
25
|
-
"maximum": 100
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"responses": {
|
|
29
|
-
"200": {
|
|
30
|
-
"description": "Employee Schema",
|
|
31
|
-
"schema": {
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": {
|
|
34
|
-
"$ref": "#/definitions/employee"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"definitions": {
|
|
43
|
-
"employee": {
|
|
44
|
-
"description": "Employee Details",
|
|
45
|
-
"type": "object",
|
|
46
|
-
"additionalProperties": false,
|
|
47
|
-
"properties": {
|
|
48
|
-
"name": { "type": "string"},
|
|
49
|
-
"age": { "type": "integer"},
|
|
50
|
-
"departments" : {
|
|
51
|
-
"type": "array",
|
|
52
|
-
"items": {
|
|
53
|
-
"type": "string"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"tags" : {
|
|
57
|
-
"type": "array",
|
|
58
|
-
"items": {
|
|
59
|
-
"$ref": "#/definitions/department"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"department": {
|
|
65
|
-
"description": "Employee Details",
|
|
66
|
-
"type": "object",
|
|
67
|
-
"additionalProperties": false,
|
|
68
|
-
"properties": {
|
|
69
|
-
"deptId": { "type": "integer"},
|
|
70
|
-
"name": { "type": "string"}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
}
|