-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Report duplicated values in enum #1478
Comments
Hey @Amachua |
I've started to work on this point, I hope I'll be able to open a Pull Request soon in your repository! While working on this, what tweak do you think we'll need on the |
4 tasks
This was referenced Mar 9, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
User story.
As an API Designer, when I define an enumeration with duplicated value, then I want that a warning is raised.
Describe the solution you'd like
When I use the following
dummy.yml
fileAnd I run the command line
yarn spectral lint .\dummy.yml
Then I want to have an issue that is raised as the entry
dummy
appears too times in thesome_header
parameter.Rule proposition
I've already prepared the following rule so that it could be included (if found useful), in the next version of Spectral.
Should I open a Pull request to add it in your ruleset? :)
The text was updated successfully, but these errors were encountered: