mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const validateArchiveFeaturesSchema = {
|
|
$id: '#/components/schemas/validateArchiveFeaturesSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
description: 'Validation details for features archive operation',
|
|
required: ['parentsWithChildFeatures', 'hasDeletedDependencies'],
|
|
properties: {
|
|
parentsWithChildFeatures: {
|
|
type: 'array',
|
|
items: {
|
|
type: 'string',
|
|
},
|
|
description:
|
|
'List of parent features that would orphan child features that are not part of the archive operation',
|
|
example: ['my-feature-4', 'my-feature-5', 'my-feature-6'],
|
|
},
|
|
hasDeletedDependencies: {
|
|
type: 'boolean',
|
|
description:
|
|
'Whether any dependencies will be deleted as part of archive',
|
|
example: true,
|
|
},
|
|
},
|
|
components: {
|
|
schemas: {},
|
|
},
|
|
} as const;
|
|
|
|
export type ValidateArchiveFeaturesSchema = FromSchema<
|
|
typeof validateArchiveFeaturesSchema
|
|
>;
|