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

Add FeatureRule struct tags #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

davidelavarga
Copy link

The issue arises during the unmarshalling process of the FeatureRule object. Currently, the FeatureRule struct lacks the necessary tags to instruct the JSON library on how to map the field names properly. As a result, the field names in the JSON do not match the variable names in the struct.
For instance, the "Variations" field in the JSON does not correspond to "variations" in the struct, causing the mapping to fail.

When the BuildFeatureRule method is executed, the conditions within the switch statement are not properly fulfilled due to this mismatch in field names.

@davidelavarga davidelavarga requested a review from vacero August 13, 2024 14:57
@davidelavarga
Copy link
Author

@vacero @endSly related to what I proposed here: https://github.com/liberetech/sky-go/pull/215

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