humaadapter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter extracts the contract from an already-constructed huma.API. It does NOT build the api — the api is injected and only read here (separation of concerns: construction lives in sampleapi.New).

func New

func New(api huma.API) *Adapter

New returns a huma Adapter. Idiomatic: humaadapter.New(api).

func (*Adapter) Extract

func (a *Adapter) Extract(_ context.Context) (*ir.Document, error)

Extract implements ir.Adapter: code -> OpenAPI 3.1 Document.

Jump to

Keyboard shortcuts

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