Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
41 stars 5 forks source link

Adding interests to Profile #317

Closed etoledom closed 3 months ago

etoledom commented 4 months ago

Closes #314

Description

This PR updates the openapi spec to bring profile interests.

Testing Steps

etoledom commented 3 months ago

From https://github.com/Automattic/Gravatar-SDK-iOS/pull/317#discussion_r1676051699

I am afraid this is technically a breaking change so we shouldn't add the new case to the existing enum :( seems like something else we'll need to do manually 🤔, i mean remove manually.

@pinarol - Since we keep CodingKeys and InternalCodingKeys together, we need to write the decoding init "manually" for it to use InternalCodingKeys. I have modified the templates to write this init for us for now using InternalCodingKeys.

When the compiler writes this init, it will prefer to use CodingKeys.

These inits are public, but they still exist even if they are not written literally, so I believe that removing them later won't be a breaking change.