Skip to content

Commit

Permalink
Provide ability to choose name-normalizer from two preset options
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Lukiyanchuk committed May 5, 2023
1 parent 9285a42 commit 7bfbe37
Show file tree
Hide file tree
Showing 9 changed files with 712 additions and 11 deletions.
9 changes: 9 additions & 0 deletions internal/test/name-normalizer/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package: name_normalizer
generate:
echo-server: true
client: true
models: true
embedded-spec: true
output-options:
name-normalizer: ToCamelCaseWithInitialisms
output: name_normalizer.gen.go
3 changes: 3 additions & 0 deletions internal/test/name-normalizer/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package name_normalizer

//go:generate go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen --config=config.yaml spec.yaml

0 comments on commit 7bfbe37

Please sign in to comment.