mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-13 11:17:26 +02:00
* refactor: add schemas to user admin controller * refactor: remove unused SessionService * refactor: fix search query type confusion * refactor: add schemas to user controller (#1693) * refactor: add schemas to user controller * refactor: fix getAllUserSplashes method name * refactor: name and email should not be required on create * refactor: only some user fields may be updated * refactor: should not require any fields on user update (#1730) * refactor: send 400 instead of 500 on missing username and email * refactor: should not require any fields for user update * refactor: note that earlier versions required name or email * refactor: merge roleDescriptionSchema and roleSchema
17 lines
427 B
TypeScript
17 lines
427 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const resetPasswordSchema = {
|
|
$id: '#/components/schemas/resetPasswordSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
required: ['resetPasswordUrl'],
|
|
properties: {
|
|
resetPasswordUrl: {
|
|
type: 'string',
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type ResetPasswordSchema = FromSchema<typeof resetPasswordSchema>;
|