Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.

update validation for new data + zoom driven functions #443

Merged
merged 2 commits into from
Apr 19, 2016
Merged

Conversation

ansis
Copy link
Contributor

@ansis ansis commented Apr 16, 2016

👀 @lucaswoj

@lucaswoj
Copy link

Per chat with @scothis, we're going to relax some of these restrictions. Ping me when this PR is ready for 👀.

@ansis
Copy link
Contributor Author

ansis commented Apr 19, 2016

@lucaswoj this should be ready for 👀. 7bc1c53 relaxes restrictions. Do any changes need to be made the spec itself?

valueSpec: {type: 'number'},
style: options.style,
styleSpec: options.styleSpec
}));

Choose a reason for hiding this comment

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

Should we also validate the value property, if it is present?

Choose a reason for hiding this comment

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

I think we can assert that

  • value is either a string or a number
  • no keys other than value and zoom are present

@lucaswoj
Copy link

Do any changes need to be made the spec itself?

Nope, you've captured it all in code 👍.

@lucaswoj
Copy link

Was the change to bin/gl-style-composite an accident?

@lucaswoj
Copy link

This is good to 🚢 once you add a test for the new zoom-and-feature function syntax.

@ansis
Copy link
Contributor Author

ansis commented Apr 19, 2016

d45b873 adds validation tests for zoom+feature functions

@ansis ansis merged commit db01e2d into mb-pages Apr 19, 2016
@ansis ansis removed the in progress label Apr 19, 2016
@tristen tristen deleted the zoom-and-data branch May 31, 2016 18:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants