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.
This PR fixes a small issue with
isOptional
value ofNSAttributeDescriptor
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 reflectisOptional
forAny
types when a base type and Objective-C class is not set. Additionally a test case was added to catch this issue during testing.