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

Function multiPartFileSchema

formdata.go:241–248  ·  view source on GitHub ↗
(f reflect.StructField)

Source from the content-addressed store, hash-verified

239}
240
241func multiPartFileSchema(f reflect.StructField) *Schema {
242 return &Schema{
243 Type: "string",
244 Format: "binary",
245 Description: f.Tag.Get("doc"),
246 ContentEncoding: "binary",
247 }
248}
249
250func multiPartContentEncoding(t reflect.Type) map[string]*Encoding {
251 nFields := t.NumField()

Callers 1

multiPartFormFileSchemaFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…