zod-nest 2.0.0 → 2.0.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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -297,10 +297,10 @@ var createCompositionOverride = /* @__PURE__ */ __name((opts) => {
|
|
|
297
297
|
if (deltaRequired.length > 0) {
|
|
298
298
|
delta.required = deltaRequired;
|
|
299
299
|
}
|
|
300
|
-
delete jsonSchema.type;
|
|
301
300
|
delete jsonSchema.properties;
|
|
302
301
|
delete jsonSchema.required;
|
|
303
302
|
delete jsonSchema.additionalProperties;
|
|
303
|
+
jsonSchema.type = "object";
|
|
304
304
|
jsonSchema.allOf = [
|
|
305
305
|
{
|
|
306
306
|
$ref: buildRef(parentId)
|