Documentation
¶
Overview ¶
gen-validators generates zero-allocation OpenAPI validators for HAProxy models.
This generator reads OpenAPI specs from pkg/generated/dataplaneapi/v{30,31,32}/spec.json and produces Go validation functions that work directly on client-native structs, avoiding the ~25GB allocation overhead of JSON marshal/unmarshal cycles.
Usage:
go run ./cmd/gen-validators
Or via make:
make generate-validators
Click to show internal directories.
Click to hide internal directories.