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

Method MarshalJSON

openapi.go:118–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116}
117
118func (c *Contact) MarshalJSON() ([]byte, error) {
119 return marshalJSON([]jsonFieldInfo{
120 {"name", c.Name, omitEmpty},
121 {"url", c.URL, omitEmpty},
122 {"email", c.Email, omitEmpty},
123 }, c.Extensions)
124}
125
126// License name & link for using the API.
127//

Callers

nothing calls this directly

Calls 1

marshalJSONFunction · 0.85

Tested by

no test coverage detected