MCPcopy Create free account
hub / github.com/go-json-experiment/json / DisallowUnknownFields

Method DisallowUnknownFields

v1/stream.go:63–67  ·  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

source not stored for this graph (policy: none)

Callers 1

TestUnmarshalFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestUnmarshalFunction · 0.76