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

Method MarshalJSON

openapi.go:625–632  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

623}
624
625func (r *RequestBody) MarshalJSON() ([]byte, error) {
626 return marshalJSON([]jsonFieldInfo{
627 {"$ref", r.Ref, omitEmpty},
628 {"description", r.Description, omitEmpty},
629 {"content", r.Content, omitNever},
630 {"required", r.Required, omitEmpty},
631 }, r.Extensions)
632}
633
634// Link object represents a possible design-time link for a response. The
635// presence of a link does not guarantee the caller’s ability to successfully

Callers

nothing calls this directly

Calls 1

marshalJSONFunction · 0.85

Tested by

no test coverage detected