@ditojs/server 2.80.0 → 2.81.0

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": "@ditojs/server",
3
- "version": "2.80.0",
3
+ "version": "2.81.0",
4
4
  "type": "module",
5
5
  "description": "Dito.js Server – Dito.js is a declarative and modern web framework, based on Objection.js, Koa.js and Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/server",
@@ -26,10 +26,10 @@
26
26
  "node >= 18"
27
27
  ],
28
28
  "dependencies": {
29
- "@ditojs/admin": "^2.80.0",
30
- "@ditojs/build": "^2.80.0",
31
- "@ditojs/router": "^2.80.0",
32
- "@ditojs/utils": "^2.80.0",
29
+ "@ditojs/admin": "^2.81.0",
30
+ "@ditojs/build": "^2.81.0",
31
+ "@ditojs/router": "^2.81.0",
32
+ "@ditojs/utils": "^2.81.0",
33
33
  "@koa/cors": "^5.0.0",
34
34
  "@koa/etag": "^5.0.2",
35
35
  "@koa/multer": "^4.0.0",
@@ -90,5 +90,5 @@
90
90
  "objection": "^3.1.5",
91
91
  "typescript": "^5.9.3"
92
92
  },
93
- "gitHead": "fd999439023af0616fa1e8afd51909eff651161d"
93
+ "gitHead": "13502bffe56e6c570a96092c692b9178789e3f62"
94
94
  }
@@ -146,15 +146,17 @@ export function convertSchema(
146
146
  }
147
147
  hasConvertedProperties = true
148
148
  }
149
- if (schema.patternProperties) {
150
- // TODO: Don't we need to handle required here too?
151
- const { properties } = convertProperties(
152
- schema.patternProperties,
153
- options,
154
- entry
155
- )
156
- schema.patternProperties = properties
157
- hasConvertedProperties = true
149
+ for (const key of ['additionalProperties', 'patternProperties']) {
150
+ if (isObject(schema[key])) {
151
+ // TODO: Don't we need to handle required here too?
152
+ const { properties } = convertProperties(
153
+ schema[key],
154
+ options,
155
+ entry
156
+ )
157
+ schema[key] = properties
158
+ hasConvertedProperties = true
159
+ }
158
160
  }
159
161
  if (
160
162
  jsonType &&