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

Method MarshalJSON

openapi.go:451–458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449}
450
451func (m *MediaType) MarshalJSON() ([]byte, error) {
452 return marshalJSON([]jsonFieldInfo{
453 {"schema", m.Schema, omitEmpty},
454 {"example", m.Example, omitNil},
455 {"examples", m.Examples, omitEmpty},
456 {"encoding", m.Encoding, omitEmpty},
457 }, m.Extensions)
458}
459
460// Param Describes a single operation parameter.
461//

Callers

nothing calls this directly

Calls 1

marshalJSONFunction · 0.85

Tested by

no test coverage detected