Documentation
¶
Overview ¶
Package strictjson provides bounded structural validation for untrusted JSON.
Index ¶
Constants ¶
const (
// MaxDocumentBytes bounds a single Kubernetes or adapter response.
MaxDocumentBytes = 8 << 20
)
Variables ¶
Functions ¶
func Decode ¶
Decode validates one document and then decodes it while retaining integer precision when the destination contains interface values.
func DecodeExact ¶
DecodeExact validates one document and rejects fields that are not present in the destination type. Use it for closed external protocols whose JSON Schema declares additionalProperties=false. Kubernetes objects intentionally use Decode so forward-compatible fields remain covered by the state digest.
Types ¶
This section is empty.