-
Notifications
You must be signed in to change notification settings - Fork 373
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
Don't modify user-schemas in Material Object Renderer #1871
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes LGTM.
Tested it and it works as expected.
f469aec
to
9690c66
Compare
Thanks! I updated the code accordingly. |
@@ -33,7 +33,8 @@ export const Generate: { | |||
jsonSchema: JsonSchema, | |||
layoutType?: string, | |||
prefix?: string, | |||
rootSchema?: JsonSchema | |||
rootSchema?: JsonSchema, | |||
label?: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this again?
const detailUiSchema = useMemo( | ||
() => | ||
findUISchema( | ||
uischemas, | ||
schema, | ||
uischema.scope, | ||
path, | ||
'Group', | ||
() => Generate.uiSchema(schema, 'Group', undefined, undefined, label), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer assigning the label as part of the generator
1b6de6e
to
c874f4c
Compare
if (isEmpty(path)) { | ||
detailUiSchema.type = 'VerticalLayout'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also remove this modification ;)
c874f4c
to
9fc2ed9
Compare
closes eclipsesource#1712 Signed-off-by: Lukas Boll lukas-bool@web.de
d59dda6
to
77327d5
Compare
Thank you, I added your suggestion! |
Don't modify user-schemas in Material Object Renderer
closes #1712
Signed-off-by: Lukas Boll lukas-bool@web.de