1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: add docs for disabled variant

closes #633
This commit is contained in:
Ivar Conradi Østhus 2020-10-30 09:22:01 +01:00
parent 2221322e22
commit 1f7e245e0b

View File

@ -19,6 +19,17 @@ If the toggle is considered **enabled**, the Unleash client will select the corr
If the toggle is considered **disabled** you will get the built-in `disabled` variant.
A json represntation of the empty variant will be the following:
```json
{
"name": "disabled",
"enabled": false
}
```
The actual representation of the built-in the client SDK will vary slighty, to honor best pratices in various languages.
> If you change the number of variants, it will affect variant allocations. This means that some of the users will be moved to the next variant.
_Java SDK example:_