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

Method MarshalJSON

openapi.go:222–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220}
221
222func (v *ServerVariable) MarshalJSON() ([]byte, error) {
223 return marshalJSON([]jsonFieldInfo{
224 {"enum", v.Enum, omitEmpty},
225 {"default", v.Default, omitNever},
226 {"description", v.Description, omitEmpty},
227 }, v.Extensions)
228}
229
230// Server URL, optionally with variables.
231//

Callers

nothing calls this directly

Calls 1

marshalJSONFunction · 0.85

Tested by

no test coverage detected