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

api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package api holds the authored OpenAPI documents (decision record 0002) and the parity test that checks them against the gitignored cache of JFrog's published definitions. The bundled documents are embedded so the server can register a 501 route for every hand-written operation that has no handler yet: the generated strict servers get that from stubgen, hand-written routes need the spec itself.

Index

Constants

This section is empty.

Variables

View Source
var SpecFiles = func() []string {
	files, err := fs.Glob(Specs, "*.openapi.yaml")
	if err != nil {

		panic(err)
	}
	sort.Strings(files)
	return files
}()

SpecFiles lists the embedded documents in a stable order. It is derived from the embedded files so a new service needs no change here.

View Source
var Specs embed.FS

Specs are the bundled documents, one per service, as `make bundle` writes them. Fragments under src/ are not embedded; they are inputs.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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