rog-codegen turns OpenAPI 3.0 specs into Ruby on Rails code, cutting down on boilerplate so you can focus on your business logic and adding real value to your organization.
rog-codegen requires Go >= 1.20.
You can install rog-codegen as a binary:
$ go install github.com/trungvitlonx/rog-codegen@latestrog-codegen is largely configured using a YAML configuration file, to simplify the number of flags that users need to remember.
This will create a YAML configuration file (.rog.yaml) and a sample of OpenAPI 3.0 specification file (openapi.yaml):
$ rog-codegen initThen, to generate the code:
$ rog-codegen generateBy default, you will find the generated code at ./gen.