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

feat: Ignore case enum parsing #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

isabr85
Copy link

@isabr85 isabr85 commented Jul 29, 2021

Issue scenario:
We are serializing our own object (CompanyModel) which contains enum (Pending) with camel-case resolver. The serilalized json string contains now the enum string camel-cased (pending). Now I try to deserialize this json string back to CompanyModel object but I get an error that says that 'pending' enum is missing, but it is not missing it just written as 'Pending' in the Model.

We need to ignore case for enum parsing.
Can you approve this PR?

Issue scenario:
We are serializing our own object (CompanyModel) which contains enum (Pending) with camel-case resolver. The serilalized json string contains now the enum string camel-cased (pending). Now I try to deserialize this json string back to CompanyModel object but I get an error that says that 'pending' enum is missing, but it is not missing it just written as 'Pending' in the Model. 

We need to ignore case  for enum parsing.
Can you approve this PR?
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

Successfully merging this pull request may close these issues.

None yet

1 participant