mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-17 13:46:47 +02:00
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
28 lines
808 B
TypeScript
28 lines
808 B
TypeScript
import type { FromSchema } from 'json-schema-to-ts';
|
|
import { adminSegmentSchema } from './admin-segment-schema';
|
|
import { constraintSchema } from './constraint-schema';
|
|
|
|
export const segmentsSchema = {
|
|
$id: '#/components/schemas/segmentsSchema',
|
|
description:
|
|
'Data containing a list of [segments](https://docs.getunleash.io/reference/segments)',
|
|
type: 'object',
|
|
properties: {
|
|
segments: {
|
|
type: 'array',
|
|
description: 'A list of segments',
|
|
items: {
|
|
$ref: '#/components/schemas/adminSegmentSchema',
|
|
},
|
|
},
|
|
},
|
|
components: {
|
|
schemas: {
|
|
adminSegmentSchema,
|
|
constraintSchema,
|
|
},
|
|
},
|
|
} as const;
|
|
|
|
export type SegmentsSchema = FromSchema<typeof segmentsSchema>;
|