MCPcopy
hub / github.com/gin-gonic/gin / DisallowUnknownFields

Method DisallowUnknownFields

codec/json/api.go:49–49  ·  view source on GitHub ↗

DisallowUnknownFields causes the Decoder to return an error when the destination is a struct and the input contains object keys which do not match any non-ignored, exported fields in the destination.

()

Source from the content-addressed store, hash-verified

47 // is a struct and the input contains object keys which do not match any
48 // non-ignored, exported fields in the destination.
49 DisallowUnknownFields()
50
51 // Decode reads the next JSON-encoded value from its
52 // input and stores it in the value pointed to by v.

Callers 1

decodeJSONFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected