1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi/spec/feature-strategy-segment-schema.ts
Christopher Kolstad 18c720f4e9
Task/open api state (#1738)
* task: add open api to import/export
2022-06-22 09:09:49 +02:00

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