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

Support Unmarshal too #13

Closed
tom10271 opened this issue Sep 11, 2018 · 3 comments
Closed

Support Unmarshal too #13

tom10271 opened this issue Sep 11, 2018 · 3 comments

Comments

@tom10271
Copy link

tom10271 commented Sep 11, 2018

It is great to see people actually realize we need something work like sheriff in Golang's world.

As a Symfony developer too I enjoy JMSSerializationBundle very much on serializing and deserializing data easily.

It would be great if it can be supported too.

@mweibel
Copy link
Collaborator

mweibel commented Oct 11, 2018

Why can't you just use standard json unmarshalling using json.Unmarshal or so?

@tom10271
Copy link
Author

The problem is I want to allow certain fields be able to deserialize into my struct only according to serialization group of the route.

For example, /admin/orders/1 is allowed to deserialize orderTotal but not /orders/1. The standard library is not applicable.

@mweibel
Copy link
Collaborator

mweibel commented Mar 6, 2024

This is not planned currently.

@mweibel mweibel closed this as completed Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants