-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: wip pass
yaml
as filetype to FilePathSync
- check `yaml.Unmarshal` not able to `Unmarshal` to `json.rawMessage` which is just `[]byte` with `MarshalJSON` and `UnmarshalJSON` - `FileTypeEvaluator` didn't turn out to be such a good idea because we are reliant on `gojsonschema` to test json schema - add `example_flags.yaml` file based on `examples_flags.json` refactor: remove traces of `FileTypeEvaluator` Signed-off-by: Suraj Banakar <surajrbanakar@gmail.com>
- Loading branch information
1 parent
7aa703f
commit cef8463
Showing
7 changed files
with
136 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
flags: | ||
myBoolFlag: | ||
state: ENABLED | ||
variants: | ||
'on': true | ||
'off': false | ||
defaultVariant: 'on' | ||
myStringFlag: | ||
state: ENABLED | ||
variants: | ||
key1: val1 | ||
key2: val2 | ||
defaultVariant: key1 | ||
myFloatFlag: | ||
state: ENABLED | ||
variants: | ||
one: 1.23 | ||
two: 2.34 | ||
defaultVariant: one | ||
myIntFlag: | ||
state: ENABLED | ||
variants: | ||
one: 1 | ||
two: 2 | ||
defaultVariant: one | ||
myObjectFlag: | ||
state: ENABLED | ||
variants: | ||
object1: | ||
key: val | ||
object2: | ||
key: true | ||
defaultVariant: object1 | ||
isColorYellow: | ||
state: ENABLED | ||
variants: | ||
'on': true | ||
'off': false | ||
defaultVariant: 'off' | ||
targeting: | ||
if: | ||
- "==": | ||
- var: | ||
- color | ||
- yellow | ||
- 'on' | ||
- 'off' | ||
fibAlgo: | ||
variants: | ||
recursive: recursive | ||
memo: memo | ||
loop: loop | ||
binet: binet | ||
defaultVariant: recursive | ||
state: ENABLED | ||
targeting: | ||
if: | ||
- "$ref": emailWithFaas | ||
- binet | ||
- null | ||
headerColor: | ||
variants: | ||
red: "#FF0000" | ||
blue: "#0000FF" | ||
green: "#00FF00" | ||
yellow: "#FFFF00" | ||
defaultVariant: red | ||
state: ENABLED | ||
targeting: | ||
if: | ||
- "$ref": emailWithFaas | ||
- fractionalEvaluation: | ||
- - red | ||
- 25 | ||
- - blue | ||
- 25 | ||
- - green | ||
- 25 | ||
- - yellow | ||
- 25 | ||
- null | ||
"$evaluators": | ||
emailWithFaas: | ||
in: | ||
- "@faas.com" | ||
- var: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters