1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/openapi/spec/inactive-users-schema.ts

32 lines
986 B
TypeScript
Raw Normal View History

import { inactiveUserSchema } from './inactive-user-schema';
import { FromSchema } from 'json-schema-to-ts';
export const inactiveUsersSchema = {
$id: '#/components/schemas/inactiveUsersSchema',
type: 'object',
additionalProperties: false,
description: 'A list of users that has been flagged as inactive',
required: ['version', 'inactiveUsers'],
properties: {
version: {
description:
'The version of this schema. Used to keep track of compatibility',
type: 'integer',
minimum: 1,
example: 1,
},
inactiveUsers: {
description: 'The list of users that are flagged as inactive',
type: 'array',
items: {
$ref: '#/components/schemas/inactiveUserSchema',
},
},
},
components: {
inactiveUserSchema,
},
} as const;
export type InactiveUsersSchema = FromSchema<typeof inactiveUsersSchema>;