1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-21 13:47:39 +02:00
unleash.unleash/src/lib/openapi/spec/create-invited-user-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

37 lines
1.1 KiB
TypeScript

import type { FromSchema } from 'json-schema-to-ts';
export const createInvitedUserSchema = {
$id: '#/components/schemas/createInvitedUserSchema',
type: 'object',
additionalProperties: false,
required: ['email', 'name', 'password'],
description: 'Data used to create a user that has been invited to Unleash.',
properties: {
username: {
type: 'string',
description: "The user's username. Must be unique if provided.",
example: 'Hunter',
},
email: {
type: 'string',
description: "The invited user's email address",
example: 'hunter@example.com',
},
name: {
type: 'string',
description: "The user's name",
example: 'Hunter Burgan',
},
password: {
type: 'string',
description: "The user's password",
example: 'hunter2',
},
},
components: {},
} as const;
export type CreateInvitedUserSchema = FromSchema<
typeof createInvitedUserSchema
>;