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

Validate number of entries in x-enum-varnames #1554

Open
jamietanna opened this issue Apr 19, 2024 · 0 comments
Open

Validate number of entries in x-enum-varnames #1554

jamietanna opened this issue Apr 19, 2024 · 0 comments

Comments

@jamietanna
Copy link
Member

diff --git examples/extensions/xenumvarnames/api.yaml examples/extensions/xenumvarnames/api.yaml
index 5601f4a5..8bdd308d 100644
--- examples/extensions/xenumvarnames/api.yaml
+++ examples/extensions/xenumvarnames/api.yaml
@@ -16,4 +16,3 @@ components:
         - EXP
       x-enum-varnames:
         - Active
-        - Expired
diff --git examples/extensions/xenumvarnames/gen.go examples/extensions/xenumvarnames/gen.go
index 6b919353..a6137d39 100644
--- examples/extensions/xenumvarnames/gen.go
+++ examples/extensions/xenumvarnames/gen.go
@@ -5,14 +5,14 @@ package xenumvarnames
 
 // Defines values for ClientType.
 const (
-       ACT ClientType = "ACT"
-       EXP ClientType = "EXP"
+       ClientTypeACT ClientType = "ACT"
+       ClientTypeEXP ClientType = "EXP"
 )
 
 // Defines values for ClientTypeWithExtension.
 const (
-       Active  ClientTypeWithExtension = "ACT"
-       Expired ClientTypeWithExtension = "EXP"
+       ClientTypeWithExtensionActive ClientTypeWithExtension = "ACT"
+       ClientTypeWithExtensionEXP    ClientTypeWithExtension = "EXP"
 )
 
 // ClientType defines model for ClientType.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant