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

Ignore multiple fields #90

Closed
pmincz opened this issue Feb 10, 2014 · 1 comment
Closed

Ignore multiple fields #90

pmincz opened this issue Feb 10, 2014 · 1 comment

Comments

@pmincz
Copy link

pmincz commented Feb 10, 2014

To ignore multiple fields you have to do various FieldSerializers, i think is best to do only one passing by argument the fields with a separator like "-".

@ShardPhoenix
Copy link

You can ignore multiple like this:

FieldSerializer[MyClass](ignore("field1") orElse ignore("field2"))

The "orElse" is a bit confusing in this context but results from partial functions being used for the ignoring, where orElse is how you combine multiple partial functions..

@pmincz pmincz closed this as completed Feb 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants