Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: pass context to CustomUnmarshaller #616

Open
fortuna opened this issue Jan 13, 2025 · 0 comments
Open

feature: pass context to CustomUnmarshaller #616

fortuna opened this issue Jan 13, 2025 · 0 comments

Comments

@fortuna
Copy link

fortuna commented Jan 13, 2025

Describe the solution you'd like
Please provide a CustomUnmarshallerContext interface that takes the context. Currently there's no way to receive the context with a CustomMarshaller.

I need to implement an unmarshaller that unmarshals "named" objects by looking them up on a map that is kept in the context.

Describe alternatives you've considered
InterfaceUnmarshalerContext and BytesUnmarshalerContext don't meet my need, since they require adding behavior to the type being unmarshalled, and also ties the type to this library, but I want my config types to be library-agnostic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant