Skip to content

feat: Ignore case enum parsing#32

Open
isabr85 wants to merge 1 commit intoCryptisk:masterfrom
isabr85:patch-1
Open

feat: Ignore case enum parsing#32
isabr85 wants to merge 1 commit intoCryptisk:masterfrom
isabr85:patch-1

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.

1 participant