Skip to content

Fix validation logic for arrays attributes and array containers #814

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

Merged
merged 7 commits into from
Aug 4, 2016

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Aug 3, 2016

I noticed a few problems with Plotly.validate and isLinkedToArray attributes (which are becoming more and more numerous). Here are a few fixes.

- by default, input info array must have same length as the
  declared version, now with 'freeLength' this doesn't have to be.
- set freeLength to true for the updatem menus 'args' attribute
- so that we can keep track of 'skipped-over' containers
  e.g. 'buttons' items are skipped over when their content
  is invalid
- make sure that invalid and skipped-over containers
  lead to validation errors.
- make sure to track the input index to match schema/value
  with the correct input container
@etpinard etpinard added bug something broken status: reviewable labels Aug 3, 2016
@etpinard etpinard added this to the v1.16.0 milestone Aug 3, 2016
@etpinard etpinard merged commit 4b64345 into master Aug 4, 2016
@etpinard etpinard deleted the validate-missing-items branch August 4, 2016 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant