@digi-frontend/dgate-api-documentation 1.1.1 → 1.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digi-frontend/dgate-api-documentation",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "dist/src/index.js",
5
5
  "module": "dist/src/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -92,6 +92,12 @@ export const transformPathsToArray = (openApiJson: OpenAPIFile): TransformedPath
92
92
  items: resolvedItemSchema,
93
93
  }
94
94
  }
95
+ // if the response content is not an array remove the (items) property
96
+ if (schema?.type !== 'array') {
97
+ const { items, ...schemaRest } = schema
98
+
99
+ schema = schemaRest
100
+ }
95
101
 
96
102
  return {
97
103
  code,
package/variables.txt CHANGED
@@ -1 +1 @@
1
- export APP_VERSION=1.1.0
1
+ export APP_VERSION=1.1.1