bundlegen

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Overview

Package bundlegen is the OpenAPI → bundle generator. v0.1 is deliberately a constrained, fail-loud subset: exactly one operation (single-version passthrough), request/response must be $ref'd component object schemas, scalars + arrays + $ref + nullable→proto3-optional are supported, and any unsupported construct (allOf/oneOf/anyOf/additionalProperties/untyped/ inline) is a hard error rather than a lossy bundle. Transform-stanza emission rolls to v0.2 in lockstep with runtime transform support. Output is byte-reproducible (sorted, deterministic marshal) for the consumer's buf-breaking story.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(openapiSrc, outDir string) error

Generate reads the OpenAPI doc from openapiSrc — a local file path or an http(s):// URL (fetched at build time; the bytes are passed through into the committed bundle, so a URL fetch stays point-in-time) — and writes descriptors.binpb, openapi.json, and versions.yaml into outDir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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