Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 487 Bytes

File metadata and controls

10 lines (8 loc) · 487 Bytes

additional-properties

Generates MarshalJSON and UnmarshalJSON methods to allow arbitrary fields when marshaling and unmarshaling structs. See the official JSON Schema definition of additional properties at https://json-schema.org/understanding-json-schema/reference/object.html

This attempts to fix a problem with encoding/json where there's no way to retrieve arbitrary fields when unmarshaling to a struct as described in golang/go#6213.