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

Make alternatives.describe more consistent #513

Merged
merged 2 commits into from
Dec 12, 2014

Conversation

dhm116
Copy link

@dhm116 dhm116 commented Dec 11, 2014

Fixes #211

Updates alternatives.describe from an array of descriptions to use the
proposed { type: 'alternatives', alternatives: [...] } syntax with
all of the fields supported by Any included.

Fixes hapijs#211

Updates alternatives.describe from an array of descriptions to use the
proposed `{ type: 'alternatives', alternatives: [...] }` syntax with
all of the fields supported by `Any` included.
@Marsup
Copy link
Collaborator

Marsup commented Dec 11, 2014

Can you add a test testing what #211 was complaining about ?

@Marsup Marsup added the feature New functionality or improvement label Dec 11, 2014
@Marsup Marsup self-assigned this Dec 11, 2014
@dhm116
Copy link
Author

dhm116 commented Dec 11, 2014

Sure, I can get that updated tonight.

On Thursday, December 11, 2014, Nicolas Morel notifications@github.com
wrote:

Can you add a test testing what #211
#211 was complaining about ?


Reply to this email directly or view it on GitHub
#513 (comment).

Doug McCall
dhm116@gmail.com

@Marsup Marsup added this to the 5.1.0 milestone Dec 11, 2014
@dhm116
Copy link
Author

dhm116 commented Dec 12, 2014

@Marsup Added a unit test to validate describe includes inherited properties from Any. Let me know if they need some tweaking.

@dhm116
Copy link
Author

dhm116 commented Dec 12, 2014

Looks like the travis builds failed due to an npm issue :rage1:

Marsup added a commit that referenced this pull request Dec 12, 2014
Make alternatives.describe more consistent
@Marsup Marsup merged commit faeb98c into hapijs:master Dec 12, 2014
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

describe(); Doesn't give much information on alternatives
2 participants