mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
20 lines
457 B
TypeScript
20 lines
457 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
|
||
|
export const passwordSchema = {
|
||
|
$id: '#/components/schemas/passwordSchema',
|
||
|
type: 'object',
|
||
|
additionalProperties: false,
|
||
|
required: ['password'],
|
||
|
properties: {
|
||
|
password: {
|
||
|
type: 'string',
|
||
|
},
|
||
|
confirmPassword: {
|
||
|
type: 'string',
|
||
|
},
|
||
|
},
|
||
|
components: {},
|
||
|
} as const;
|
||
|
|
||
|
export type PasswordSchema = FromSchema<typeof passwordSchema>;
|