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

Fix Arrays and Tuples #472

Merged
merged 2 commits into from
Sep 19, 2017
Merged

Conversation

sophypal
Copy link
Contributor

This project uses semver, please check the scope of this pr:

  • #none# - documentation fixes and/or test additions
  • #patch# - backwards-compatible bug fix
  • #minor# - adding functionality in a backwards-compatible manner
  • #major# - incompatible API change

CHANGELOG

This fixes a lot of issues with arrays not working, especially around tuples. Since this feature was broken when the last major bump occurred, and the fix involved some internal changes that ultimately required a major bump of bunsen-core, I believe this fix can be a patch. The changes shouldn't affect the usage according to the "official documentation" but it does break some assumptions that were, in my opinion, naive as tuple support was barely working even before.

Tuples (fixed-length) arrays are supported by setting the model items to an array. When additionalItems is set, the tuple becomes dynamic with an initial length of items.length. Overriding the view for tuples can be done with arrayOptions.tupleCells. Overriding the view for the additionalItems can be done with arrayOptions.itemCell.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 4304802 on sophypal:integration-fixes into ** on ciena-frost:master**.

@sophypal
Copy link
Contributor Author

sophypal commented Sep 19, 2017

👍

Approved with PullApprove

@sophypal sophypal merged commit f6e5a24 into ciena-frost:master Sep 19, 2017
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.

2 participants