Documentation
¶
Overview ¶
Package jsonstrict provides target-aware JSON key validation shared by transport and persisted event decoders.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNoDuplicateKeysFor ¶
CheckNoDuplicateKeysFor rejects repeated object keys. When an object is decoded into a struct, keys are compared with encoding/json's case-folding rules so two spellings cannot silently target the same field.
func CheckNoDuplicateKeysForSchema ¶ added in v0.60.2
CheckNoDuplicateKeysForSchema traverses an explicit typed schema, folding only known field names. Unknown case-distinct metadata keys remain independent; exact duplicate keys are still rejected at every depth. Custom unmarshalers remain opaque: callers must supply a method-free schema to inspect their fields.
Types ¶
This section is empty.