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

Case insensitive property lookup? #81

Closed
onionhammer opened this issue Dec 4, 2018 · 4 comments
Closed

Case insensitive property lookup? #81

onionhammer opened this issue Dec 4, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@onionhammer
Copy link

I'm trying to utilize this because we get some inconsistent cases from lots of different source, but it looks like it is case sensitive

Is there a way to configure JsonProperty() to not have a case sensitive name

@andreas-aeschlimann andreas-aeschlimann self-assigned this Dec 8, 2018
@andreas-aeschlimann
Copy link
Member

I think we had a discussion about supporting multiple decorators, I am not sure if this works already though. Will look into it soon.

This would mean you could use:

@JsonProperty("name", String)
@JsonProperty("Name", String)
name: string = undefined

@onionhammer
Copy link
Author

onionhammer commented Dec 8, 2018

@andreas-aeschlimann yeah thats probably the best bet... but you would have to do every permutation;

For instance these should all be valid:

parameterid
parameterId
parameterID
ParameterId
ParameterID

It starts to get pretty insane

@andreas-aeschlimann andreas-aeschlimann added the enhancement New feature or request label Dec 25, 2018
@andreas-aeschlimann
Copy link
Member

Todo: case insensitive mode

@andreas-aeschlimann
Copy link
Member

This has been implemented and will be included in the new version 1.0.7.

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