@strapi/plugin-documentation 4.2.0-beta.3 → 4.3.0-beta.1
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.
|
|
3
|
+
"version": "4.3.0-beta.1",
|
|
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.
|
|
28
|
-
"@strapi/utils": "4.
|
|
27
|
+
"@strapi/helper-plugin": "4.3.0-beta.1",
|
|
28
|
+
"@strapi/utils": "4.3.0-beta.1",
|
|
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": "9d6555398960c39159d66bb4eea3bcb0362e37e3"
|
|
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',
|