Protocol buffer definitions and OpenAPI generation for Flo.
This repository contains the canonical Protocol Buffer definitions for Flo services and generates:
- Go stubs (committed under
flo/v1/) - OpenAPI specification (generated to
gen/openapi/flo.swagger.json)
proto/flo/v1/- Protocol buffer source files (versioned)flo/v1/- Generated Go code (committed)gen/openapi/- Generated OpenAPI specification (not committed)
# Install dependencies
make deps
# Lint protos
make lint
# Generate Go and OpenAPI
make gen- Edit
.protofiles inproto/flo/v1/ - Run
make lintto check for issues - Run
make gento regenerate code - Commit both the
.protochanges and generated code
The generated Go stubs are used by:
flo-goSDK- Flo server implementation
The OpenAPI specification is used by:
- Flo dashboard
- REST API clients
The protocol buffer definitions are also used by:
flo-pySDK (expectsflo-apias sibling directory for generation)