@tsed/schema 8.14.0 → 8.14.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.
@@ -105,6 +105,9 @@ function serializeSchema(schema, options) {
105
105
  obj = execMapper("enums", [obj, schema], options);
106
106
  obj = execMapper("discriminatorMapping", [obj, schema], options);
107
107
  obj = execMapper("generics", [obj, schema], options);
108
+ if (obj.type === "array" && !obj.items && !obj.contains) {
109
+ obj.items = {};
110
+ }
108
111
  return obj;
109
112
  }
110
113
  export function schemaMapper(schema, opts) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/schema",
3
3
  "description": "JsonSchema module for Ts.ED Framework",
4
4
  "type": "module",
5
- "version": "8.14.0",
5
+ "version": "8.14.1",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -34,7 +34,7 @@
34
34
  "tsed"
35
35
  ],
36
36
  "dependencies": {
37
- "@tsed/openspec": "8.14.0",
37
+ "@tsed/openspec": "8.14.1",
38
38
  "change-case": "^5.4.4",
39
39
  "json-schema": "0.4.0",
40
40
  "picomatch": "4.0.2",
@@ -43,11 +43,11 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@apidevtools/swagger-parser": "10.1.0",
46
- "@tsed/barrels": "8.14.0",
47
- "@tsed/core": "8.14.0",
48
- "@tsed/hooks": "8.14.0",
49
- "@tsed/openspec": "8.14.0",
50
- "@tsed/typescript": "8.14.0",
46
+ "@tsed/barrels": "8.14.1",
47
+ "@tsed/core": "8.14.1",
48
+ "@tsed/hooks": "8.14.1",
49
+ "@tsed/openspec": "8.14.1",
50
+ "@tsed/typescript": "8.14.1",
51
51
  "@types/fs-extra": "11.0.4",
52
52
  "@types/json-schema": "7.0.15",
53
53
  "@types/picomatch": "3.0.2",