Documentation
¶
Overview ¶
Package openapi builds the Huma API with every domain registered, over whatever infrastructure it is handed, so `gonext openapi` can produce the document with no database and no environment. Nothing in a running server imports it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spec ¶
Spec is what Initialize returns: the API with every registration applied. It mirrors main's App but carries only what producing the document needs.
func Initialize ¶
Initialize builds the same Huma API InitializeApp builds, over a fixed config and a *bun.DB that never dials — registration only constructs repositories. Run `gonext generate` after editing the provider list below.
func NewSpec ¶
func NewSpec( humaAPI huma.API, _ api.HealthzRegistered, _ api.ReadyzRegistered, _ example.Registered, _ users.Registered, ) *Spec
NewSpec assembles Spec. Its marker parameters aren't read; depending on them is what forces wire to run every registration before Initialize returns.