Documentation
¶
Overview ¶
gen-validators generates zero-allocation OpenAPI validators for HAProxy models.
It reads the pinned Data Plane API OpenAPI specs under cmd/gen-validators/spec and produces Go validation functions that work directly on client-native structs. The output is the browser playground's schema check: the playground has no haproxy binary, so `haproxy_valid` falls back to a syntax + schema parse there. Nothing in a production binary uses it.
Usage:
go run ./cmd/gen-validators
Or via make:
make generate-playground-validators
Click to show internal directories.
Click to hide internal directories.