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

Method MarshalJSON

openapi.go:254–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252}
253
254func (s *Server) MarshalJSON() ([]byte, error) {
255 return marshalJSON([]jsonFieldInfo{
256 {"url", s.URL, omitNever},
257 {"description", s.Description, omitEmpty},
258 {"variables", s.Variables, omitEmpty},
259 }, s.Extensions)
260}
261
262// Example value of a request param or body or response header or body.
263//

Callers

nothing calls this directly

Calls 1

marshalJSONFunction · 0.85

Tested by

no test coverage detected