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

Allow array of custom converters #54

Open
andreas-aeschlimann opened this issue Feb 17, 2018 · 2 comments
Open

Allow array of custom converters #54

andreas-aeschlimann opened this issue Feb 17, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@andreas-aeschlimann
Copy link
Member

As of now, it is not possible to pass array of custom converters. It would be nice if that were possible.

Example

@JsonProperty("valuetype_id", [String2Number])
 public valueTypeIds: number[] = undefined;

This does NOT work at the moment.

@andreas-aeschlimann andreas-aeschlimann added the enhancement New feature or request label Feb 17, 2018
@andreas-aeschlimann andreas-aeschlimann self-assigned this Feb 17, 2018
@archfz
Copy link
Contributor

archfz commented Mar 23, 2018

Kinda ran into this problem. Yes it would be a nice feature.

@andreas-aeschlimann
Copy link
Member Author

You can bypass it easily for now, by writing a custom converter for an array as well.

@andreas-aeschlimann andreas-aeschlimann added this to the version 2.x milestone Feb 27, 2019
@andreas-aeschlimann andreas-aeschlimann removed this from the version 2.x milestone May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants