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

Add new fields to settings object decode. #263

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Conversation

bsneed
Copy link
Contributor

@bsneed bsneed commented Oct 26, 2023

  • Added metrics to settings object decode.
  • Added consentSettings to settings object decode.

@@ -37,6 +39,8 @@ public struct Settings: Codable {
self.plan = try? values.decode(JSON.self, forKey: CodingKeys.plan)
self.edgeFunction = try? values.decode(JSON.self, forKey: CodingKeys.edgeFunction)
self.middlewareSettings = try? values.decode(JSON.self, forKey: CodingKeys.middlewareSettings)
self.metrics = try? values.decode(JSON.self, forKey: CodingKeys.metrics)
self.consentSettings = try? values.decode(JSON.self, forKey: CodingKeys.consentSettings)

Choose a reason for hiding this comment

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

Where is this CodingKeys.consentSettings defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

down below as

    enum CodingKeys: String, CodingKey {
        case integrations
        case plan
        case edgeFunction
        case middlewareSettings
        case metrics
        case consentSettings
    }

@bsneed bsneed merged commit 1cc2c9c into main Oct 26, 2023
7 checks passed
@bsneed bsneed deleted the bsneed/settings_update branch October 26, 2023 17:09
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