apis

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package apis holds the OpenAPI contracts this CLI is built from, mirroring the layout of the contracts repository:

leaflow/<service>/v1/openapi.yaml
leaflow/<service>/<subpackage>/v1/openapi.yaml   a service split by function
leaflow/type/v1/error.yaml                       shared, referenced by every contract

Keeping the layout is what lets each contract's relative reference to the shared error schema resolve, and means a synced file is byte-identical to upstream — so a review diff is the upstream diff, with nothing in between.

It is a package of its own, outside internal/, because the contracts are an asset of the repository rather than the private data of one package, and because go:embed only reaches the directory it is declared in.

Index

Constants

View Source
const Root = "leaflow"

Root is the directory inside Contracts that holds the services.

Variables

View Source
var Contracts embed.FS

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