1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-09 00:18:26 +01:00
unleash.unleash/src/lib/openapi/spec/feature-strategy-segment-schema.ts
Thomas Heartman df59b10fb6
OpenAPI: more schema cleanup (#4353)
This PR fixes additional schemas that hadn't been described properly
2023-07-28 06:59:05 +00:00

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
>;