mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-09 00:18:26 +01:00
28 lines
828 B
TypeScript
28 lines
828 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const featureStrategySegmentSchema = {
|
|
$id: '#/components/schemas/featureStrategySegmentSchema',
|
|
type: 'object',
|
|
description:
|
|
'An object containing a segment identifier and a strategy identifier.',
|
|
additionalProperties: false,
|
|
required: ['segmentId', 'featureStrategyId'],
|
|
properties: {
|
|
segmentId: {
|
|
type: 'integer',
|
|
description: 'The ID of the segment',
|
|
example: 2,
|
|
},
|
|
featureStrategyId: {
|
|
type: 'string',
|
|
description: 'The ID of the strategy',
|
|
example: 'e2caa08f-30c4-4aa3-b955-54ca9e93dc13',
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type FeatureStrategySegmentSchema = FromSchema<
|
|
typeof featureStrategySegmentSchema
|
|
>;
|