Skip to content

Commit

Permalink
prefix enum
Browse files Browse the repository at this point in the history
  • Loading branch information
rucciva committed Jun 18, 2024
1 parent d29142a commit 8498cb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/proxy/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func Generate(ctx context.Context, specPath string, opts GenerateOptions) (bytes

code, err := codegen.Generate(kinspec, codegen.Configuration{
PackageName: opts.PackageName,
Compatibility: codegen.CompatibilityOptions{
AlwaysPrefixEnumValues: true,
},
Generate: codegen.GenerateOptions{
EchoServer: true,
Strict: true,
Expand Down Expand Up @@ -129,6 +132,9 @@ func Generate(ctx context.Context, specPath string, opts GenerateOptions) (bytes
}

code, err := codegen.Generate(kinspec, codegen.Configuration{
Compatibility: codegen.CompatibilityOptions{
AlwaysPrefixEnumValues: true,
},
Generate: codegen.GenerateOptions{
EchoServer: true,
Strict: true,
Expand Down

0 comments on commit 8498cb3

Please sign in to comment.