Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

fix: fix logic for screaming snake case during enum deserialization #63

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

Conversation

matthias-tn
Copy link

There was a problem during Enum deserialization. The identifier type value "Irdi" or "Iri" or "IRI" was always converted to "I_R_I" but the enum value in IdentifierType is IRI or IRDI.

I fixed the logic to use correct camelCase to screaming snake case conversion. If a value is already uppercase it is now skipped to avoid a conversion to e.g. "I_R_I"

@sebbader-sap
Copy link

Dear @matthias-tn, thanks for providing the fix! Please note that the project has moved to a new eclipse repository at https://github.com/eclipse-digitaltwin/aas4j.
Therefore, I will not merge your PR here but have created a new ticket. I will keep this PR open until the fix has been added into the new repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants