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 warning for enums without names #610

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

JordonPhillips
Copy link
Contributor

This adds a warning-level validation event for enums that do not use
the name property. It additionally updates all built in enums and
enums used for tests where the absense of the name isn't deliberate.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This adds a warning-level validation event for enums that do not use
the name property. It additionally updates all built in enums and
enums used for tests where the absense of the name isn't deliberate.
Copy link
Contributor

@kstich kstich left a comment

Choose a reason for hiding this comment

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

Should the spec docs for @enum be updated to indicate the "SHOULD have names"?

@JordonPhillips
Copy link
Contributor Author

There's already language saying "their use is strongly encouraged"

@JordonPhillips JordonPhillips merged commit 10df05c into smithy-lang:master Oct 21, 2020
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.

3 participants