danielgtaylor / openapi-cli-generator

Generate a CLI from an OpenAPI 3 specification
MIT License
181 stars 49 forks source link

Support for transforming lowerCamel operation IDs to kebab-case #31

Open acgray opened 4 years ago

acgray commented 4 years ago

Updated generator to transform lowerCamelCase operation names into idiomatic CLI kebab-case. This is useful for processing specs auto-generated from Spr**g MVC services.

(I have added a test but unsure if main_test.go is the right place - exporting Slug() in main.go feels icky but it also seems too small to add a new module. Please feel free to change as you like)