mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
19 lines
540 B
TypeScript
19 lines
540 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
|
||
|
export const validateFeatureSchema = {
|
||
|
$id: '#/components/schemas/validateFeatureSchema',
|
||
|
type: 'object',
|
||
|
required: ['name'],
|
||
|
description: "Data used to validate a feature toggle's name.",
|
||
|
properties: {
|
||
|
name: {
|
||
|
description: 'The feature name to validate.',
|
||
|
type: 'string',
|
||
|
example: 'my-feature-3',
|
||
|
},
|
||
|
},
|
||
|
components: {},
|
||
|
} as const;
|
||
|
|
||
|
export type ValidateFeatureSchema = FromSchema<typeof validateFeatureSchema>;
|