1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/src/lib/openapi/spec/variant-flag-schema.ts

31 lines
729 B
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const variantFlagSchema = {
$id: '#/components/schemas/variantFlagSchema',
type: 'object',
additionalProperties: false,
properties: {
name: {
type: 'string',
},
enabled: {
type: 'boolean',
},
payload: {
type: 'object',
additionalProperties: false,
properties: {
type: {
type: 'string',
},
value: {
type: 'string',
},
},
},
},
components: {},
} as const;
export type VariantFlagSchema = FromSchema<typeof variantFlagSchema>;