Documentation
¶
Overview ¶
protoc-gen-ddex is a post-processor for DDEX protobuf-generated Go code.
It performs three operations on generated .pb.go files: 1. Injects XML struct tags for DDEX XML compatibility 2. Generates enum string conversion methods (enum_strings.go) 3. Generates XML marshaling methods and namespace handling (*.xml.go, registry.go)
Usage:
protoc-gen-ddex [directory]
If no directory is specified, it defaults to "./gen"
Example:
buf generate # Generate .pb.go files from buf.build/openaudio/ddex protoc-gen-ddex # Post-process to add XML support
Installation:
go install github.com/OpenAudio/ddex-proto/cmd/protoc-gen-ddex@latest
Future features: - DDEX validation rules (e.g., reference resolution in ERN messages) - Configurable validation options via flags or config file
Click to show internal directories.
Click to hide internal directories.