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

Method MarshalJSON

openapi.go:397–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

395}
396
397func (e *Encoding) MarshalJSON() ([]byte, error) {
398 return marshalJSON([]jsonFieldInfo{
399 {"contentType", e.ContentType, omitEmpty},
400 {"headers", e.Headers, omitEmpty},
401 {"style", e.Style, omitEmpty},
402 {"explode", e.Explode, omitEmpty},
403 {"allowReserved", e.AllowReserved, omitEmpty},
404 }, e.Extensions)
405}
406
407// MediaType object provides schema and examples for the media type identified
408// by its key.

Callers

nothing calls this directly

Calls 1

marshalJSONFunction · 0.85

Tested by

no test coverage detected