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

add toll-free area codes to description #102

Merged
merged 2 commits into from
Oct 25, 2017

Conversation

chasingSublimity
Copy link
Contributor

closes #101

Copy link
Contributor

@alexkwolfe alexkwolfe left a comment

Choose a reason for hiding this comment

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

Otherwise, LGTM

@@ -151,7 +151,7 @@ components = [
{ name: 'extension', type: 'string', description: 'Extension' }
{ name: 'country_code', type: 'string', description: 'Country code' }
{ name: 'type', type: 'string', description: 'Number type: home, work, mobile' }
{ name: 'is_tollfree', type: 'boolean', description: 'Whether the number is toll-free' }
Copy link
Contributor

Choose a reason for hiding this comment

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

You could also extract the toll free area codes from the lookup object, so that if a new code is used it automatically gets picked up in the description...

description: "Whether the number is toll-free (#{Object.keys(tollFreeAreaCodes).join(', ')})"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

derp

@chasingSublimity chasingSublimity merged commit 2320411 into master Oct 25, 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.

List area codes we consider to be toll free
2 participants