Use the Buf CLI to generate code and swagger schemes. The project currently supports Buf CLI v1, but it is planned to upgrade to v2. So far, the following modules support generation:
- engine
- chat
- Step 1:
cd chat- Navigating to thechatdirectory where your Protobuf files andbuf.work.yamlconfiguration file are located. - Step 2:
buf generate- Runningbuf generatewill generate code based on the configurations defined inbuf.gen.yaml. - Step 3: After generation, the output files (e.g., Go code and Swagger definitions) are stored in specified directories.