Skip to content

Commit

Permalink
fix: accept empty variants
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Mar 20, 2024
1 parent c52781f commit e605ce1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct FeatureResponse: Codable {
public struct Toggle: Codable {
public let name: String
public let enabled: Bool
public let variant: Variant
public let variant: Variant?
}

// MARK: - Variant
Expand Down
1 change: 0 additions & 1 deletion Tests/UnleashProxyClientSwiftTests/PollerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ final class PollerTests: XCTestCase {
[
"name": "foo",
"enabled": true,
"variant": ["name": "disabled", "enabled": false]
],
[
"name": "bar",
Expand Down

0 comments on commit e605ce1

Please sign in to comment.