Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set error: Invalid JSON on returnEmptyFields: true #282

Open
nmainardi opened this issue May 15, 2018 · 0 comments
Open

set error: Invalid JSON on returnEmptyFields: true #282

nmainardi opened this issue May 15, 2018 · 0 comments

Comments

@nmainardi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant