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: 🐛 unnecessary extra array wrapper in theme serialization #98

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

theashraf
Copy link
Member

This pull request addresses an issue where the themes field in the manifest object was being serialized with an unnecessary extra array wrapper. The serialization process was mistakenly wrapping the already arrayed themes in an additional array, leading to incorrect JSON structure.

Changes Made:

  • Updated the to_json method in the Manifest struct to ensure themes are directly serialized as an array of theme objects without an extra wrapping array. This adjustment aligns the serialization process with the expected JSON format.

Copy link

changeset-bot bot commented Mar 12, 2024

⚠️ No Changeset found

Latest commit: 9d8f969

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Collaborator

@afsalz afsalz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@theashraf theashraf merged commit b3bb518 into main Mar 12, 2024
1 check passed
@github-actions github-actions bot mentioned this pull request Apr 3, 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.

2 participants