@digi-frontend/dgate-api-documentation 1.1.2 → 1.1.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.
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index7.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +1 -1
- package/dist/src/helpers/layout.helper.js +1 -1
- package/dist/src/helpers/layout.helper.js.map +1 -1
- package/dist/styles.css +530 -530
- package/package.json +1 -1
- package/src/helpers/layout.helper.ts +19 -0
- package/variables.txt +1 -1
package/package.json
CHANGED
|
@@ -126,6 +126,15 @@ export const transformPathsToArray = (openApiJson: OpenAPIFile): TransformedPath
|
|
|
126
126
|
// Add parameters if it does not exist in the original JSON
|
|
127
127
|
if (!methodProps?.parameters) {
|
|
128
128
|
obj.parameters = []
|
|
129
|
+
} else {
|
|
130
|
+
obj.parameters = obj.parameters.map((param) => {
|
|
131
|
+
const { schema } = param
|
|
132
|
+
if (schema && schema?.items && schema?.type?.toLowerCase() != 'array') {
|
|
133
|
+
delete schema.items
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return { ...param, schema }
|
|
137
|
+
})
|
|
129
138
|
}
|
|
130
139
|
|
|
131
140
|
// load response headers parameters
|
|
@@ -190,6 +199,9 @@ export const transformPathsArrayToOrigin = (paths: TransformedPathsArray): OpenA
|
|
|
190
199
|
let copiedRest = structuredClone(rest || {})
|
|
191
200
|
if (copiedRest && copiedRest.parameters) {
|
|
192
201
|
copiedRest.parameters.map((param) => {
|
|
202
|
+
if (param && param?.schema?.items && param?.schema?.type?.toLowerCase() != 'array') {
|
|
203
|
+
delete param?.schema?.items
|
|
204
|
+
}
|
|
193
205
|
if (param && param?.schema?.items && param?.schema?.items?.type == 'array') {
|
|
194
206
|
param.schema.items.items = {}
|
|
195
207
|
}
|
|
@@ -220,6 +232,13 @@ export const transformPathsArrayToOrigin = (paths: TransformedPathsArray): OpenA
|
|
|
220
232
|
const formattedHeaders: Record<string, any> = {}
|
|
221
233
|
if (headers) {
|
|
222
234
|
for (const [key, value] of Object.entries(headers)) {
|
|
235
|
+
if (
|
|
236
|
+
value?.schema &&
|
|
237
|
+
value?.schema?.items &&
|
|
238
|
+
value?.schema?.type?.toLowerCase() != 'array'
|
|
239
|
+
) {
|
|
240
|
+
delete value?.schema?.items
|
|
241
|
+
}
|
|
223
242
|
formattedHeaders[key] = {
|
|
224
243
|
description: value.description || '',
|
|
225
244
|
required: value.required || false,
|
package/variables.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export APP_VERSION=1.1.
|
|
1
|
+
export APP_VERSION=1.1.3
|