You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unmarshal provides a way to include annotations of Ion values. In order to do so, user needs to send a specific data structure, which is a struct with exactly 2 fields, one with ion:",annotation" tag, and the other a type which can hold the Ion value after decoding (in terms of type).
In the code base, unmarshal.go:
// expected struct for decoding Ion values must have only 2 fields: one has `ion:",annotation"`
// tag, and the other field must be of a type where Ion value can be decoded to.
func isValidAnnotatableStruct(v reflect.Value, listofkinds []reflect.Kind) (bool, error) {
The text was updated successfully, but these errors were encountered:
therapon
changed the title
Restriction on input strut from user to Unmarshal values with annotation
Restriction on input struct from user to Unmarshal values with annotation
Dec 3, 2020
Unmarshal provides a way to include annotations of Ion values. In order to do so, user needs to send a specific data structure, which is a struct with exactly 2 fields, one with
ion:",annotation"
tag, and the other a type which can hold the Ion value after decoding (in terms of type).In the code base,
unmarshal.go
:The text was updated successfully, but these errors were encountered: