This commit is contained in:
11
internal/utils/schema/openfeature_flag.go
Normal file
11
internal/utils/schema/openfeature_flag.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package schemautils
|
||||
|
||||
type OpenfeatureFlag struct {
|
||||
Name string `json:"name" required:"true" description:"Name of the flag"`
|
||||
Id string `json:"id" required:"true" description:"UUID of the flag"`
|
||||
Kind string `json:"kind" required:"true" description:"Flag kind" enum:"boolean,number,string,string_array,int_array,float_array"`
|
||||
Enabled bool `json:"enabled" required:"true" description:"This is hardcoded to true"`
|
||||
Variant string `json:"variant" required:"true" description:"The name of the variant that is assigned to the appclient environment"`
|
||||
Variants map[string]interface{} `json:"variants" required:"true" description:"All variants and their values" nullable:"false"`
|
||||
Default string `json:"default" required:"true" description:"Name of the default variant assigned to the flag"`
|
||||
}
|
||||
Reference in New Issue
Block a user