@strapi/plugin-documentation 4.2.0-beta.3 → 4.2.0-beta.4
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.
|
@@ -33,6 +33,7 @@ describe('Build Component Schema', () => {
|
|
|
33
33
|
const [pluginResponseValue, apiResponseValue] = Object.values(schemas);
|
|
34
34
|
|
|
35
35
|
const expectedShape = {
|
|
36
|
+
type: 'object',
|
|
36
37
|
properties: {
|
|
37
38
|
data: {
|
|
38
39
|
type: 'object',
|
|
@@ -82,6 +83,7 @@ describe('Build Component Schema', () => {
|
|
|
82
83
|
const apiListResponseValue = schemas['RestaurantListResponse'];
|
|
83
84
|
|
|
84
85
|
const expectedShape = {
|
|
86
|
+
type: 'object',
|
|
85
87
|
properties: {
|
|
86
88
|
data: {
|
|
87
89
|
type: 'array',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-documentation",
|
|
3
|
-
"version": "4.2.0-beta.
|
|
3
|
+
"version": "4.2.0-beta.4",
|
|
4
4
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"test": "echo \"no tests yet\""
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@strapi/helper-plugin": "4.2.0-beta.
|
|
28
|
-
"@strapi/utils": "4.2.0-beta.
|
|
27
|
+
"@strapi/helper-plugin": "4.2.0-beta.4",
|
|
28
|
+
"@strapi/utils": "4.2.0-beta.4",
|
|
29
29
|
"bcryptjs": "2.4.3",
|
|
30
30
|
"cheerio": "^1.0.0-rc.5",
|
|
31
31
|
"fs-extra": "10.0.0",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"react-router-dom": "5.2.0",
|
|
43
43
|
"redux": "^4.0.1",
|
|
44
44
|
"reselect": "^4.0.0",
|
|
45
|
-
"swagger-ui-dist": "
|
|
45
|
+
"swagger-ui-dist": "4.11.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@strapi/strapi": "^4.0.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
51
|
+
"node": ">=14.19.1 <=16.x.x",
|
|
52
52
|
"npm": ">=6.0.0"
|
|
53
53
|
},
|
|
54
54
|
"strapi": {
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
58
58
|
"kind": "plugin"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "5caff35a30e33b7a660eb946299f9e3d2d35b2b8"
|
|
61
61
|
}
|
|
@@ -95,6 +95,7 @@ const getAllSchemasForContentType = ({ routeInfo, attributes, uniqueName }) => {
|
|
|
95
95
|
schemas = {
|
|
96
96
|
...schemas,
|
|
97
97
|
[`${pascalCase(uniqueName)}ListResponse`]: {
|
|
98
|
+
type: 'object',
|
|
98
99
|
properties: {
|
|
99
100
|
data: {
|
|
100
101
|
type: 'array',
|
|
@@ -128,6 +129,7 @@ const getAllSchemasForContentType = ({ routeInfo, attributes, uniqueName }) => {
|
|
|
128
129
|
schemas = {
|
|
129
130
|
...schemas,
|
|
130
131
|
[`${pascalCase(uniqueName)}Response`]: {
|
|
132
|
+
type: 'object',
|
|
131
133
|
properties: {
|
|
132
134
|
data: {
|
|
133
135
|
type: 'object',
|
package/yarn-error.log
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
Arguments:
|
|
2
|
+
/Users/alex/.nvm/versions/node/v16.13.2/bin/node /Users/alex/.nvm/versions/node/v16.13.2/bin/yarn
|
|
3
|
+
|
|
4
|
+
PATH:
|
|
5
|
+
/Users/alex/.nvm/versions/node/v16.13.2/bin:/Users/alex/.nvm/versions/node/v18.1.0/bin:/Users/alex/.nvm/versions/node/v16.13.2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/alex/.nvm/versions/node/v16.13.2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/alex/.yarn/bin:/Users/alex/.yarn/bin
|
|
6
|
+
|
|
7
|
+
Yarn version:
|
|
8
|
+
1.22.17
|
|
9
|
+
|
|
10
|
+
Node version:
|
|
11
|
+
16.13.2
|
|
12
|
+
|
|
13
|
+
Platform:
|
|
14
|
+
darwin arm64
|
|
15
|
+
|
|
16
|
+
Trace:
|
|
17
|
+
SyntaxError: /Users/alex/dev/strapi/strapi/packages/plugins/documentation/package.json: Unexpected token < in JSON at position 1187
|
|
18
|
+
at JSON.parse (<anonymous>)
|
|
19
|
+
at /Users/alex/.nvm/versions/node/v16.13.2/lib/node_modules/yarn/lib/cli.js:1625:59
|
|
20
|
+
at Generator.next (<anonymous>)
|
|
21
|
+
at step (/Users/alex/.nvm/versions/node/v16.13.2/lib/node_modules/yarn/lib/cli.js:310:30)
|
|
22
|
+
at /Users/alex/.nvm/versions/node/v16.13.2/lib/node_modules/yarn/lib/cli.js:321:13
|
|
23
|
+
|
|
24
|
+
npm manifest:
|
|
25
|
+
{
|
|
26
|
+
"name": "@strapi/plugin-documentation",
|
|
27
|
+
"version": "4.1.12",
|
|
28
|
+
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/strapi/strapi.git",
|
|
32
|
+
"directory": "packages/plugins/documentation"
|
|
33
|
+
},
|
|
34
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
35
|
+
"author": {
|
|
36
|
+
"name": "Strapi Solutions SAS",
|
|
37
|
+
"email": "hi@strapi.io",
|
|
38
|
+
"url": "https://strapi.io"
|
|
39
|
+
},
|
|
40
|
+
"maintainers": [
|
|
41
|
+
{
|
|
42
|
+
"name": "Strapi Solutions SAS",
|
|
43
|
+
"email": "hi@strapi.io",
|
|
44
|
+
"url": "https://strapi.io"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"scripts": {
|
|
48
|
+
"test": "echo \"no tests yet\""
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@strapi/helper-plugin": "4.1.12",
|
|
52
|
+
"@strapi/utils": "4.1.12",
|
|
53
|
+
"bcryptjs": "2.4.3",
|
|
54
|
+
"cheerio": "^1.0.0-rc.5",
|
|
55
|
+
"fs-extra": "10.0.0",
|
|
56
|
+
"koa-static": "^5.0.0",
|
|
57
|
+
"lodash": "4.17.21",
|
|
58
|
+
"path-to-regexp": "6.2.0",
|
|
59
|
+
"pluralize": "8.0.0",
|
|
60
|
+
"react": "^17.0.2",
|
|
61
|
+
"react-copy-to-clipboard": "^5.0.3",
|
|
62
|
+
"react-dom": "^17.0.2",
|
|
63
|
+
"react-intl": "5.20.2",
|
|
64
|
+
"react-redux": "7.2.3",
|
|
65
|
+
"react-router": "^5.2.0",
|
|
66
|
+
"react-router-dom": "5.2.0",
|
|
67
|
+
"redux": "^4.0.1",
|
|
68
|
+
"reselect": "^4.0.0",
|
|
69
|
+
<<<<<<< HEAD
|
|
70
|
+
"swagger-ui-dist": "3.47.1",
|
|
71
|
+
"yaml": "1.10.2"
|
|
72
|
+
=======
|
|
73
|
+
"swagger-ui-dist": "4.11.1"
|
|
74
|
+
>>>>>>> master
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@strapi/strapi": "^4.0.0"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=12.22.0 <=16.x.x",
|
|
81
|
+
"npm": ">=6.0.0"
|
|
82
|
+
},
|
|
83
|
+
"strapi": {
|
|
84
|
+
"displayName": "Documentation",
|
|
85
|
+
"name": "documentation",
|
|
86
|
+
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
87
|
+
"kind": "plugin"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
yarn manifest:
|
|
92
|
+
No manifest
|
|
93
|
+
|
|
94
|
+
Lockfile:
|
|
95
|
+
No lockfile
|