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

Fix AbstractLazilyEncodableSection.toObj to better match specs #70

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

Conversation

zapo
Copy link

@zapo zapo commented Dec 6, 2024

Towards #48

This fixes AbstractLazilyEncodableSection to build an array of segments as defined in https://github.com/InteractiveAdvertisingBureau/Global-Privacy-Platform/blob/main/Core/CMP%20API%20Specification.md#getsection- rather than a single object with all of its segments merged in.

AbstractLazilyEncodableSection.toObj which is used to populate parsedSections and returned by getSection* so this would be a breaking change.

I'm happy to add tests for GppModel.toObject as it seems to be intended to represent parsedSections.

@zapo zapo changed the title Fix AbstractLazilyEncodableSection encoding to better match specs Fix AbstractLazilyEncodableSection.toObj to better match specs Dec 6, 2024
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