Skip to content

Commit

Permalink
fix: variant enabled should be false by default
Browse files Browse the repository at this point in the history
This complies with other SDKs. For reference we use NodeJS:
```typescript
const defaultVariant: IVariant = {
    name: 'disabled',
    enabled: false,
    feature_enabled: false,
};
```
  • Loading branch information
gastonfournier authored Oct 15, 2024
1 parent 4e64ba1 commit 6f61291
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.squareup.moshi.Json

data class Variant(
val name: String,
val enabled: Boolean = true,
val enabled: Boolean = false,
@Json(name = "feature_enabled") val featureEnabled: Boolean = false,
val payload: Payload? = null
)
)

0 comments on commit 6f61291

Please sign in to comment.