12 lines
903 B
Go
12 lines
903 B
Go
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"`
|
|
}
|