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

choose some return fields omit or not omit by configure #439

Closed
jinleileiking opened this issue Jul 19, 2017 · 1 comment
Closed

choose some return fields omit or not omit by configure #439

jinleileiking opened this issue Jul 19, 2017 · 1 comment

Comments

@jinleileiking
Copy link

We know than through
marashaller: EmitDefaults: true

Can let all the json fields not omitempty, the return will show all the fields.

Can we make some configure to let the json field show or not show by conf?

Not show all or show none

@achew22
Copy link
Collaborator

achew22 commented Dec 14, 2017

You should be able to implement this with a custom marshaller. Marshall the fields you care about and don't for the ones you don't.

@achew22 achew22 closed this as completed Dec 14, 2017
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