You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thanks for this awesome library. When using JsonSchema only (and have JsonForms generate a corresponding UISchema) JsonForms fails due to a stack over flow error.
The jsonSchema (minimal example) causing the error:
Happy to do so. I actually felt I didn't get to the bottom of this.
I was able to reduce the example even further. When using "type": "object", the generation of UI schema fails - it seems the ObjectControlRenderer calls mapAdditionalProps multiple times.
The Angular Material object renderer sometimes also takes over the responsibility to render
'oneOf', 'anyOf' and 'allOf' because we don't support these constructs in Angular Material yet.
However this then leads to errors. Therefore we no longer consider these combinators
during rendering.
closes#2083
Describe the bug
Hi,
Thanks for this awesome library. When using JsonSchema only (and have JsonForms generate a corresponding UISchema) JsonForms fails due to a stack over flow error.
The jsonSchema (minimal example) causing the error:
When providing a UISchema (as of below) the form renders as expected:
Expected behavior
JsonForms derives a somewhat functional UI schema, or alternatively does not crash.
Steps to reproduce the issue
https://github.com/eclipsesource/jsonforms-angular-seed
schema = {...}
to example above and setuischema = null;
npm start
and openlocalhost:4200
-> Browser (Chrome) crashes with Stack overflow
Working example
https://github.com/eclipsesource/jsonforms-angular-seed
schema = {...}
and setuischema = {...};
to example above.npm start
and openlocalhost:4200
-> form is rendered as expected.Screenshots
In which browser are you experiencing the issue?
Google Chrome 109.0.5414.75 (Official Build) (64-bit)
Which Version of JSON Forms are you using?
v3.0.0
Framework
Angular
RendererSet
Material
Additional context
I suspected the error to be somewhere in
@jsonforms\core\src\generators\uischema.ts
The text was updated successfully, but these errors were encountered: