Files
calculate_negative_points/internal/utils/schema/openfeature_flag.go
Eugene Howe b0957bfa49
Some checks failed
Docker Build and Publish / publish (push) Failing after 1m33s
webapp
2026-02-17 09:47:30 -05:00

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"`
}