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
Christopher Kolstad 53354224fc
chore: Bump biome and configure husky (#6589)
Upgrades biome to 1.6.1, and updates husky pre-commit hook.

Most changes here are making type imports explicit.
2024-03-18 13:58:05 +01:00

32 lines
991 B
TypeScript

import { inactiveUserSchema } from './inactive-user-schema';
import type { 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>;