gen-validators

command
v0.1.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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