mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
18c720f4e9
* task: add open api to import/export
22 lines
545 B
TypeScript
22 lines
545 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const featureStrategySegmentSchema = {
|
|
$id: '#/components/schemas/featureStrategySegmentSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
required: ['segmentId', 'featureStrategyId'],
|
|
properties: {
|
|
segmentId: {
|
|
type: 'integer',
|
|
},
|
|
featureStrategyId: {
|
|
type: 'string',
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type FeatureStrategySegmentSchema = FromSchema<
|
|
typeof featureStrategySegmentSchema
|
|
>;
|