unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
63 lines • 2.79 kB
TypeScript
import type { FromSchema } from 'json-schema-to-ts';
export declare const updateContextFieldSchema: {
readonly $id: "#/components/schemas/updateContextFieldSchema";
readonly type: "object";
readonly description: "Data to update an existing context field configuration.";
readonly properties: {
readonly description: {
readonly type: "string";
readonly description: "A description of the context field";
readonly example: "The user's subscription tier";
};
readonly stickiness: {
readonly type: "boolean";
readonly description: "`true` if this field should be available for use with [custom stickiness](https://docs.getunleash.io/concepts/stickiness#custom-stickiness), otherwise `false`";
readonly example: false;
};
readonly sortOrder: {
readonly type: "integer";
readonly description: "How this context field should be sorted if no other sort order is selected";
readonly example: 2;
};
readonly legalValues: {
readonly type: "array";
readonly description: "A list of allowed values for this context field";
readonly example: readonly [{
readonly value: "gold";
}, {
readonly value: "silver";
}, {
readonly value: "crystal";
}];
readonly items: {
readonly $ref: "#/components/schemas/legalValueSchema";
};
};
};
readonly components: {
readonly schemas: {
readonly legalValueSchema: {
readonly $id: "#/components/schemas/legalValueSchema";
readonly type: "object";
readonly additionalProperties: false;
readonly description: "Describes a legal value. Typically used to limit possible values for contextFields or strategy properties";
readonly required: readonly ["value"];
readonly properties: {
readonly value: {
readonly description: "The valid value";
readonly type: "string";
readonly example: "#c154c1";
};
readonly description: {
readonly description: "Describes this specific legal value";
readonly type: "string";
readonly example: "Deep fuchsia";
};
};
readonly components: {};
};
};
};
};
export type UpdateContextFieldSchema = FromSchema<typeof updateContextFieldSchema>;
//# sourceMappingURL=update-context-field-schema.d.ts.map