MCPcopy Index your code
hub / github.com/danielgtaylor/huma / Transform

Method Transform

api.go:272–272  ·  view source on GitHub ↗

Transform runs the API transformers on the given value. The `status` is the key in the operation's `Responses` map that corresponds to the response being sent (e.g. "200" for a 200 OK response).

(ctx Context, status string, v any)

Source from the content-addressed store, hash-verified

270 // the key in the operation's `Responses` map that corresponds to the
271 // response being sent (e.g. "200" for a 200 OK response).
272 Transform(ctx Context, status string, v any) (any, error)
273
274 // Marshal marshals the given value into the given writer. The
275 // content type is used to determine which format to use. Use `Negotiate` to

Callers 2

TransformMethod · 0.65
transformAndWriteFunction · 0.65

Implementers 1

apiapi.go

Calls

no outgoing calls

Tested by

no test coverage detected