MCPcopy
hub / github.com/danielgtaylor/huma / OperationDocumenter

Interface OperationDocumenter

group.go:12–16  ·  view source on GitHub ↗

OperationDocumenter is an interface that can be implemented by an API or group to document operations in the OpenAPI document. This bypasses the normal `huma.Register` logic and provides complete customization of how operations are documented.

Source from the content-addressed store, hash-verified

10// normal `huma.Register` logic and provides complete customization of how
11// operations are documented.
12type OperationDocumenter interface {
13 // DocumentOperation adds an operation to the OpenAPI document. This is
14 // called by `huma.Register` when a new operation is registered.
15 DocumentOperation(op *Operation)
16}
17
18// PrefixModifier provides a fan-out to register one or more operations with
19// the given prefix for every one operation added to a group.

Callers 2

DocumentOperationMethod · 0.65
RegisterFunction · 0.65

Implementers 1

Groupgroup.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…