dschnelldavis / angular2-json-schema-form

Angular 2 JSON Schema Form builder
MIT License
285 stars 177 forks source link

set error: Invalid JSON on returnEmptyFields: true #282

Open nmainardi opened 6 years ago

nmainardi commented 6 years ago

Binding on [options] this json:

jsonFormOptions: any = { addSubmit: false, debug: true, loadExternalAssets: true, returnEmptyFields: true, setSchemaDefaults: true, defautWidgetOptions: { feedback: true }, }; I get this error

set error: Invalid JSON  angular2-json-schema-form.es5.js:1833 
Pointer:
 

webpackJsonp../node_modules/angular2-json-schema-form/angular2-json-schema-form.es5.js.JsonPointer.set | @ | angular2-json-schema-form.es5.js:1833
-- | -- | --
  | (anonymous) | @ | angular2-json-schema-form.es5.js:4936
  | webpackJsonp../node_modules/angular2-json-schema-form/angular2-json-schema-form.es5.js.JsonPointer.forEachDeep | @ | angular2-json-schema-form.es5.js:1927
  | formatFormData | @ | angular2-json-schema-form.es5.js:4931
  | webpackJsonp../node_modules/angular2-json-schema-form/angular2-json-schema-form.es5.js.JsonSchemaFormService.validateData | @ | angular2-json-schema-form.es5.js:6511
  | (anonymous) | @ | angular2-json-schema-form.es5.js:6547
  | schedulerFn | @ | core.js:4343
  | webpackJsonp../node_modules/rxjs/_esm5/Subscriber.js.SafeSubscriber.__tryOrUnsub | @ | Subscriber.js:243
  | webpackJsonp../node_modules/rxjs/_esm5/Subscriber.js.SafeSubscriber.next | @ | Subscriber.js:190
  | webpackJsonp../node_modules/rxjs/_esm5/Subscriber.js.Subscriber._next | @ | Subscriber.js:131
  | webpackJsonp../node_modules/rxjs/_esm5/Subscriber.js.Subscriber.next | @ | Subscriber.js:95
  | webpackJsonp../node_modules/rxjs/_esm5/Subject.js.Subject.next | @ | Subject.js:56
  | webpackJsonp../node_modules/@angular/core/esm5/core.js.EventEmitter.emit | @ | core.js:4311
  | webpackJsonp../node_modules/@angular/forms/esm5/forms.js.AbstractControl.updateValueAndValidity | @ | forms.js:3394
  | webpackJsonp../node_modules/@angular/forms/esm5/forms.js.AbstractControl.updateValueAndValidity | @ | forms.js:3398
  | webpackJsonp../node_modules/@angular/forms/esm5/forms.js.AbstractControl.updateValueAndValidity | @ | forms.js:3398
  | webpackJsonp../node_modules/@angular/forms/esm5/forms.js.FormControl.setValue | @ | forms.js:3973
  | updateControl | @ | forms.js:2380
  | (anonymous) | @ | forms.js:2354
  | webpackJsonp../node_modules/@angular/forms/esm5/forms.js.DefaultValueAccessor._handleInput | @ | forms.js:1008
  | (anonymous) | @ | MaterialInputCustomComponent.html:9
  | handleEvent | @ | core.js:13547
  | callWithDebugContext | @ | core.js:15056
  | debugHandleEvent | @ | core.js:14643
  | dispatchEvent | @ | core.js:9962
  | (anonymous) | @ | core.js:10587
  | (anonymous) | @ | platform-browser.js:2628
  | webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask | @ | zone.js:421
  | onInvokeTask | @ | core.js:4740
  | webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask | @ | zone.js:420
  | webpackJsonp../node_modules/zone.js/dist/zone.js.Zone.runTask | @ | zone.js:188
  | webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask | @ | zone.js:496
  | invokeTask | @ | zone.js:1540
  | globalZoneAwareCallback

OT: Why not many changes lately? Will this ever be at least in beta?

Thank you for your attention