@sprucelabs/schema 28.8.0 → 28.8.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.
@@ -310,7 +310,7 @@ export default class SchemaField extends AbstractField {
310
310
  if (createEntityInstances) {
311
311
  return instance;
312
312
  }
313
- const getValueOptions = Object.assign({ validate: false }, options);
313
+ const getValueOptions = Object.assign(Object.assign({ validate: false }, options), { fields: undefined });
314
314
  if (isUnion) {
315
315
  return {
316
316
  schemaId: instance.schemaId,
@@ -315,7 +315,7 @@ class SchemaField extends AbstractField_1.default {
315
315
  if (createEntityInstances) {
316
316
  return instance;
317
317
  }
318
- const getValueOptions = Object.assign({ validate: false }, options);
318
+ const getValueOptions = Object.assign(Object.assign({ validate: false }, options), { fields: undefined });
319
319
  if (isUnion) {
320
320
  return {
321
321
  schemaId: instance.schemaId,
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "!build/__tests__",
9
9
  "esm"
10
10
  ],
11
- "version": "28.8.0",
11
+ "version": "28.8.1",
12
12
  "main": "./build/index.js",
13
13
  "types": "./build/index.d.ts",
14
14
  "module": "./build/esm/index.js",