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

Optional Codable property fix #33

Merged
merged 2 commits into from
May 10, 2024

Conversation

admkopec
Copy link
Contributor

@admkopec admkopec commented May 9, 2024

This PR fixes a small issue with isOptional value of NSAttributeDescriptor which caused issues while saving entities with nil values for optional Codable properties, as described in issue #32.

This PR changes the return value of valueType getter to properly reflect isOptional for Any types when a base type and Objective-C class is not set. Additionally a test case was added to catch this issue during testing.

@admkopec admkopec changed the title Optional Codable property fix for issue #32 Optional Codable property fix May 9, 2024
@helje5 helje5 merged commit e1d08df into Data-swift:develop May 10, 2024
1 check passed
@admkopec admkopec deleted the bugs/fix-optional-codable branch May 10, 2024 13:42
@admkopec admkopec restored the bugs/fix-optional-codable branch May 10, 2024 13:42
@admkopec admkopec deleted the bugs/fix-optional-codable branch May 10, 2024 13:43
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