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

Remove nil default values from primary content section. #1083

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sofiaromorales
Copy link
Contributor

Bug/issue #, if applicable: 139195428

Summary

The encoder for the primary content section now checks for nil values within the collection, instead of just checking for empty arrays. Previously, this led to issues when calculating the index for the replace patcher.

Dependencies

Describe any dependencies this PR might have, such as an associated branch in another repository.

Testing

Describe how a reviewer can test the functionality of your PR. Provide test content to test with if
applicable.

Steps:

  1. Provide setup instructions.
  2. Explain in detail how the functionality can be tested.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary

The enconder for primary content section now checks for nil values inside the collection, when before it weas checking for empty arrays,
causing issues when calculating the index for the replace patcher.

rdar://139195428
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