Help us shape the future of Go! Take the 2026 Go Developer Survey

gen-validators

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL