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

feat: respect "default" values when creating new elements in an array #2206

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

AlexandraBuzila
Copy link
Member

@AlexandraBuzila AlexandraBuzila commented Nov 9, 2023

Initialize new array elements with their default values.

Can be tested in the Array with defaults example.

Fixes #2195

Contributed on behalf of STMicroelectronics

Copy link

netlify bot commented Nov 9, 2023

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 8f95160
🔍 Latest deploy log https://app.netlify.com/sites/jsonforms-examples/deploys/6552720b65ba430008a1418b
😎 Deploy Preview https://deploy-preview-2206--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@AlexandraBuzila AlexandraBuzila force-pushed the feat/array-defaults branch 2 times, most recently from c84f008 to ac6a096 Compare November 9, 2023 14:57
@coveralls
Copy link

coveralls commented Nov 9, 2023

Coverage Status

coverage: 84.469%. remained the same
when pulling 8f95160 on AlexandraBuzila:feat/array-defaults
into c060472 on eclipsesource:master.

@AlexandraBuzila
Copy link
Member Author

Thank you for the review, Stefan! I integrated your comments.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Initialize new array elements with their default values.
Fixes default value returned for string schemas with a date format.

Fixes eclipsesource#2195

Contributed on behalf of STMicroelectronics

Signed-off-by: Alexandra Buzila <abuzila@eclipsesource.com>
@sdirix sdirix merged commit 4eff17b into eclipsesource:master Nov 13, 2023
8 checks passed
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

Successfully merging this pull request may close these issues.

Respect "default" values when creating new elements in an array
3 participants