Skip to content

Enums as First Class#131

Merged
mbryzek merged 17 commits intomasterfrom
enum2
Aug 13, 2014
Merged

Enums as First Class#131
mbryzek merged 17 commits intomasterfrom
enum2

Conversation

@mbryzek
Copy link
Collaborator

@mbryzek mbryzek commented Aug 12, 2014

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems odd that name of the value is optional, since that is what the enum is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

InternalServiceDescription is used only for validation - making it optional here let's us return a nice validation error to the user. You will see it is NOT optional in ServiceDescription which is the base class for all the rest of apidoc

mbryzek added a commit that referenced this pull request Aug 13, 2014
Enums are now First Class.

 - Specified in top level at same level as models
 - No longer support the 'enum' option on fields (breaking change)
@mbryzek mbryzek merged commit 00bb55e into master Aug 13, 2014
@mbryzek mbryzek deleted the enum2 branch October 21, 2014 20:46
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.

Enums as first class objects

2 participants