mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
12209ae21c
Part of linear task 1-1167. Fixes the first slew of schemas missing descriptions/examples, etc.
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import { 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
|
|
>;
|