1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/openapi/models/constraintSchema.ts
2023-03-15 13:30:07 +01:00

25 lines
1.4 KiB
TypeScript

/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ConstraintSchemaOperator } from './constraintSchemaOperator';
/**
* A strategy constraint. For more information, refer to [the strategy constraint reference documentation](https://docs.getunleash.io/reference/strategy-constraints)
*/
export interface ConstraintSchema {
/** The name of the context field that this constraint should apply to. */
contextName: string;
/** The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators). */
operator: ConstraintSchemaOperator;
/** Whether the operator should be case sensitive or not. Defaults to `false` (being case sensitive). */
caseInsensitive?: boolean;
/** Whether the result should be negated or not. If `true`, will turn a `true` result into a `false` result and vice versa. */
inverted?: boolean;
/** The context values that should be used for constraint evaluation. Use this property instead of `value` for properties that accept multiple values. */
values?: string[];
/** The context value that should be used for constraint evaluation. Use this property instead of `values` for properties that only accept single values. */
value?: string;
}