type BaseFlag struct {
// The type of feature flag (e.g., boolean, string, integer, float) Type string `json:"flagType,omitempty" jsonschema:"required"`
// A concise description of this feature flag's purpose. Description string `json:"description,omitempty"`
}
type BooleanFlag struct {
BaseFlag// The type of feature flag (e.g., boolean, string, integer, float) Type string `json:"flagType,omitempty" jsonschema:"enum=boolean"`
// The value returned from an unsuccessful flag evaluation DefaultValue bool `json:"defaultValue,omitempty"`
}
type Change struct {
Type string `json:"type"`
Path string `json:"path"`
OldValue any `json:"oldValue,omitempty"`
NewValue any `json:"newValue,omitempty"`
}
type FloatFlag struct {
BaseFlag// The type of feature flag (e.g., boolean, string, integer, float) Type string `json:"flagType,omitempty" jsonschema:"enum=float"`
// The value returned from an unsuccessful flag evaluation DefaultValue float64 `json:"defaultValue,omitempty"`
}
type IntegerFlag struct {
BaseFlag// The type of feature flag (e.g., boolean, string, integer, float) Type string `json:"flagType,omitempty" jsonschema:"enum=integer"`
// The value returned from an unsuccessful flag evaluation DefaultValue int `json:"defaultValue,omitempty"`
}
type ObjectFlag struct {
BaseFlag// The type of feature flag (e.g., boolean, string, integer, float) Type string `json:"flagType,omitempty" jsonschema:"enum=object"`
// The value returned from an unsuccessful flag evaluation DefaultValue any `json:"defaultValue,omitempty"`
}
type StringFlag struct {
BaseFlag// The type of feature flag (e.g., boolean, string, integer, float) Type string `json:"flagType,omitempty" jsonschema:"enum=string"`
// The value returned from an unsuccessful flag evaluation DefaultValue string `json:"defaultValue,omitempty"`
}