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.mjs CHANGED
@@ -291,10 +291,10 @@ var createCompositionOverride = /* @__PURE__ */ __name((opts) => {
291
291
  if (deltaRequired.length > 0) {
292
292
  delta.required = deltaRequired;
293
293
  }
294
- delete jsonSchema.type;
295
294
  delete jsonSchema.properties;
296
295
  delete jsonSchema.required;
297
296
  delete jsonSchema.additionalProperties;
297
+ jsonSchema.type = "object";
298
298
  jsonSchema.allOf = [
299
299
  {
300
300
  $ref: buildRef(parentId)