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
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
Did you try creating a custom DecoderConfig with a DecodeHookFuncValue? You could check the source type and return a default value for this specific field, for all other fields just return the source value directly.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I need to decode the a JSON supposed to be the type (
ProxyTransport
) from thefrp
project:https://github.com/fatedier/frp/blob/v0.52.3/pkg/config/v1/proxy.go#L40
Its field
BandwidthLimit
is expected to be of typetypes.BandwidthQuantity
.But the actual value is an empty string
""
I don't own this project. I don't want to clone the struct and keep maintaining it.
Is there a way to bypass this field so the rest of the struct can be decoded?
Thanks!
The text was updated successfully, but these errors were encountered: